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.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for groupbytime-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95563457346c5e13a8206c1a1787286988115ab04ddd4a7ac9f37060374adf23 |
|
MD5 | bf7bcbca499fd0b1581945e9f62e4875 |
|
BLAKE2b-256 | d22cf1f2876062af074e55eaa8f018082cb0faf1debb67454dfbd7ffa829ad2d |