physt
physt copied to clipboard
Datetime / calendar histograms
Requirements:
Possible axes:
- month (cyclic)
- year (continuous)
- year+month (continuous)
- day (continuous)
- hour (cyclic)
- weekday (cyclic)
- week+weekday (continuous)
- year + week (continuous) ...
Properties:
- It must be possible to have a float quantity on other axes
Use case:
I have the following data:
2010-03-10, 4.3 deg
2010-03-11, -0.3 deg
...
2017-03-13, 3.4 deg
2017-03-14, 6.2 deg
I need a simple way to construct the histogram temperature vs. month of the year, ideally just calling h2...
Compatibility:
- must work with date, datetime objects
- must work with pandas internal and nat values
Further requirements:
- enable merging
- enable flattening (year,month -> year+month