Mins and maxes can show the value that shows the most stress on the system. The following code shows how to get the min and max values of a 1-minute window:
minute['max'] = minute['sample'].rolling(window=600,center=False).max()
minute['sample'] = minute['sample'].rolling(window=600,center=False).min()
Minimum and maximum values can emphasize outliers. This can be useful in determining anomalies.Â