mcastorina / graph-cli

Flexible command line tool to create graphs from CSV data
783 stars 29 forks source link

Feature request: support resampling with sums and not only with mean #51

Closed leighmcculloch closed 3 years ago

leighmcculloch commented 3 years ago

The resampling option is very convenient, but when resampling data that is counts, it would be ideal to have the option to sum the counts together if the goal is to see total counts over time.

I think the relevant code is here where mean is used on the resampled data. It'd be great to be able to choose which function is used.

https://github.com/mcastorina/graph-cli/blob/master/graph_cli/graph_cli/graph.py#L156

mcastorina commented 3 years ago

Implemented in db889ce5e5c2d59c4a3b7d5d72bec4cf9ea152b5

See --resample-action in OPTIONS.md#line-specific-options

I will keep this issue open until the feature is available on the published PyPI package.

mcastorina commented 3 years ago

Now available in v0.1.15