A summary of time series-related objects

There are many time series-related objects in pandas that are used for manipulating, creating, and processing timestamp data. The following table gives a summary of time series-related objects:

Object

Summary

datetime.datetime

This is a standard Python datetime class.

Timestamp

This is a pandas class derived from. datetime.datetime.

DatetimeIndex

This is a pandas class and is implemented as an immutable numpy.ndarray of the Timestamp/datetime object type.

Period

This is a pandas class representing a time period.

PeriodIndex

This is a pandas class and is implemented as an immutable numpy.ndarray of the Period object type.

DateOffset

DataOffset is used to move forward a date by a given number of valid dates (days, weeks, months, and so on).

timedelta

Timedelta calculates the difference in time between two dates.

 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.37.240