I have a csv file with a size of 28 GB, which I want to plot. Those are way too many data points obviously, so how can I reduce the data? I would like to merge about 1000 data points into one by calculating the mean. This is the sturcture of my DataFrame:
Time in seconds | Force in N |
---|---|
f64 | f64 |
0.0 | 2310.18 |
0.0005 | 2313.23 |
0.001 | 2314.14 |
I thought about using groupby_dynamic
, and then calculating the mean of each group, but this only seems to work when using datetimes? The time in seconds is given as a float however.