Time Series / Date functionality
- 1 Introduction
- 2 Overview
- 3 Time Stamps vs. Time Spans
- 4 Converting to Timestamps
- 5 Generating Ranges of Timestamps
- 6 Timestamp limitations
- 7 DatetimeIndex
- 8 DateOffset objects
- 9 Time series-related instance methods
- 10 Resampling
- 11 Time Span Representation
- 12 Converting between Representations
- 13 Representing out-of-bounds spans
- 14 Time Zone Handling
In [1]: from datetime import datetime, timedelta, time
In [2]: import numpy as np
In [3]: import pandas as pd
In [4]: from pandas import datetools
In [5]: np.random.seed(123456)
In [6]: randn = np.random.randn
In [7]: randint = np.random.randint
In [8]: np.set_printoptions(precision=4, suppress=True)
In [9]: pd.options.display.max_rows=8
In [10]: import dateutil
In [11]: import pytz
In [12]: from dateutil.relativedelta import relativedelta