21MANAGING DATES AND TIMES WITH PYTHON AND PANDAS

image

In mathematics, a time series is a series of data points indexed in chronological order. They are common components in scientific datasets where observations are made over periods of time.

Although you and I recognize “11/11/1918” as a date, a computer sees this value as a string. To intelligently work with calendar dates as well as hours, minutes, seconds, and so on, Python and pandas treat them as special objects. These objects are “aware” of the mechanics of the Gregorian calendar, the sexagesimal (base 60) time system, time zones, daylight-saving time, leap years, and more.

Native Python supports ...

Get Python Tools for Scientists now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.