1.

Which of the following is used to generate an index with time delta?(a) TimeIndex(b) TimedeltaIndex(c) LeadIndex(d) None of the mentionedI had been asked this question during an interview.Enquiry is from Time Deltas in section Data Analysis with Python of Data Science

Answer»

Correct answer is (B) TIMEDELTAINDEX

To explain I would say: USING TimedeltaIndex you can pass string-like, TIMEDELTA, timedelta, or np.timedelta64 objects.



Discussion

No Comment Found

Related InterviewSolutions