Convenience functions for grouping datetimes in pandas
Project description
# groupby
Convenience functions for grouping datetimes in [pandas](http://www.github.com/pydata/pandas).
## Requirements
* [numpy](http://www.github.com/numpy/numpy)
* [pandas](http://www.github.com/pydata/pandas)
## Examples
```python
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)
```
Convenience functions for grouping datetimes in [pandas](http://www.github.com/pydata/pandas).
## Requirements
* [numpy](http://www.github.com/numpy/numpy)
* [pandas](http://www.github.com/pydata/pandas)
## Examples
```python
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)
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
groupbytime-0.3.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for groupbytime-0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d236509d9fada91ccbe27f4adcb7c48596c380bb9bc1e40cb7c2d399e0c960a5 |
|
MD5 | 0bce594fed5a7258686bda8a0c7ca3ab |
|
BLAKE2b-256 | 986c793976f077feca3c27ced3d1da3da63646dd8e7a02aa489d9afc80385f87 |