.. ipython:: python :suppress: import pandas as pd import numpy as np import random import os import itertools import functools import datetime np.random.seed(123456) pd.options.display.max_rows=8 import matplotlib matplotlib.style.use('ggplot') np.set_printoptions(precision=4, suppress=True) Timeseries ---------- `Between times `__ `Using indexer between time `__ `Constructing a datetime range that excludes weekends and includes only certain times `__ `Vectorized Lookup `__ `Aggregation and plotting time series `__ Turn a matrix with hours in columns and days in rows into a continuous row sequence in the form of a time series. `How to rearrange a python pandas DataFrame? `__ `Dealing with duplicates when reindexing a timeseries to a specified frequency `__ Calculate the first day of the month for each entry in a DatetimeIndex .. ipython:: python dates = pd.date_range('2000-01-01', periods=5) dates.to_period(freq='M').to_timestamp() .. _cookbook.resample: Resampling ********** The :ref:`Resample ` docs. `TimeGrouping of values grouped across time `__ `TimeGrouping #2 `__ `Using TimeGrouper and another grouping to create subgroups, then apply a custom function `__ `Resampling with custom periods `__ `Resample intraday frame without adding new days `__ `Resample minute data `__ `Resample with groupby `__