I have the following columns in a data-frame df:
columns = ['temperature','humidity' ,'pressure','rain' ,'lightavgw/o0' ,'lightmax','moisture']
What I want is to create a loop where I can plot the boxplot of all the columns through a single loop. I tried the following code:
columns = ['temperature','humidity' ,'pressure','rain' ,'lightavgw/o0' ,'lightmax','moisture']
for col in columns:
plt.boxplot(df[col])

