I have a dataframe with two columns Distance(m)
and height(m)
. I want to calculate the max
, min
and average
height values from an interval of 0.04439 m of distance.
Distance is a continuous series from 0 to 0.81m each 0.00222m with a total of 403 values length.
The aim is to extract 18 values (max min average) of Height from 18 intervals each 0.0439m distance (the continuous distance series between 0 and 0.81m)
Then, create a dataframe (2 columns) of each distance interval and its respectively max min and avg value of height
this is an example:
Interval distance Height_max(m) Height_min(m) Height_average(m)
1 0.35 0.15 0.25
2 0.55 0.22 0.35
3 0.25 0.10 0.15
I have only 2 columns in my dataframe:
Distance(m) = [0, 0.0022, 0.0044, .... 0.81 ]
Height(m) = [ 0, 0.1, 0.5, 0.4, 0.9, .... 0.1]
Does anyone have any suggestions that can help me?
Thanks!