groupbytime

Convenience functions for grouping datetimes in pandas


Keywords
pandas, groupby, datetime, timestamp
License
MIT
Install
pip install groupbytime==0.3.1

Documentation

groupby

Convenience functions for grouping datetimes in pandas.

Requirements

Examples

import groupbytime
import matplotlib.pyplot as plt
grouped = groupbytime.groupby_times(df, 'weekly')
weekly_mean = grouped.mean()

# plotting timedeltas doesn't really work in pandas so this helps
import matplotlib.pyplot as plt
grouped.plot_timedelta(weekly_mean)