I am doing a groupby using pd.timegrouper on a time series dataset. When I am plotting a boxplot on this groupby object,it has subplots. I dont want to divide the plot area into subplots. I tried using the parameter subplots=False
,but its throwing an error saying KEY ERROR "value".
This is the plot i am getting with subplots.
the code:
df['timestamp1'] = df['timestamp'].values.astype('datetime64[s]')
df=df.groupby(pd.TimeGrouper(key="timestamp1",freq="3H"),group_keys=True,as_index=True)
df.boxplot(column="value",subplots=True)
The dataframe object i am using is:
I want to plot all the box plots in the same area without dividing it into subplots Thanks a lot in advance.