I'm trying to find outliers for my numerical columns in a dataframe. I need to display boxplots for those columns using subplots. There are like 19 numerical columns. I cant spend time writing down boxplot code for each of the numerical variable using subplot of matplotlib. I need to use some sort of for loop so that python displays boxplot for each column by subplotting them. I dont want to keep writing this below code
plt.subplot()
sns.boxplot(data=df['<column name>']) for every column.
It would be very cumbersome.
I need the boxplots displayed in rows and columns. Any idea?
I'm trying to find outliers for my numerical columns in a dataframe. I need to display boxplots for those columns using subplots. There are like 19 numerical columns. I cant spend time writing down boxplot code for each of the numerical variable using subplot of matplotlib. I need to use some sort of for loop so that python displays boxplot for each column by subplotting them. I dont want to keep writing this below code
plt.subplot()
sns.boxplot(data=df['<column name>']) for every column.
It would be very cumbersome.
I need the boxplots displayed in rows and columns. Any idea?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.