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.2.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file groupbytime-0.3.2.tar.gz.
File metadata
- Download URL: groupbytime-0.3.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c167ffda197a6974a90315e25d868dce5d756154b4e2cb53fd258136ba028e8
|
|
| MD5 |
bc261b1b5358353f9ea1063916a98f59
|
|
| BLAKE2b-256 |
03f6767a0a1dc8d6fb6ddd10ca99c5f1da2f38672728f7b19d3f0e2e9eb1215b
|
File details
Details for the file groupbytime-0.3.2-py2.py3-none-any.whl.
File metadata
- Download URL: groupbytime-0.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
815afd3fb930026fb576ac5842832b21efb1ec6c0dd4c67313544f9ba20fec68
|
|
| MD5 |
b4516f7cafe72ba52cc51068c10114b8
|
|
| BLAKE2b-256 |
4ac6adc669428e276c3a51ce29cabfcb9c9a2c748c86a5db6f27a3528b812079
|