I have a dataframe of Report Date, Time Interval and Total Volume for a full year. I would like to be able to remove outliers within each Time Interval.
This is as f
df[df.groupby("ReportDate").TotalVolume.\ transform(lambda x : (x(x.quantile(0.05)))).eq(1)] Out[1033]: ReportDate TimeInterval TotalVolume 5785 2016-03-01 25 580.0 5786 2016-03-01 26 716.0 5787 2016-03-01 27 803.0