I'm trying to do a box plot. I iterate over df['ID_ESTACION'] values. Each of these values in for i in df['ID_ESTACION'].unique()
it is a different measuring instrument. So what I want to do is plot the temperature for that machine on a box plot.
df_1 Example:
df_1['TEMPAIRE_filt'] (with df['ID_ESTACION']== 'some value')
1
23
45
52
34
26
28
For plot this df
I used:
for i in df['ID_ESTACION'].unique():
df_1 = df[df.ID_ESTACION==i]
plt.boxplot(df_1['TEMPAIRE_filt'])
but I get this an overlapped box plot:
And you can add other keyword arguments from matplotlib boxplot: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.boxplot.html#matplotlib.pyplot.boxplot