我使用Spyder並在循環中繪製Seaborn countplots。問題在於情節似乎在同一個對象中彼此重疊,我最終只能看到情節的最後一個實例。我怎樣才能在我的控制檯中查看每個圖形?Seaborn地塊在一個循環中
for col in df.columns:
if ((df[col].dtype == np.float64) | (df[col].dtype == np.int64)):
i=0
#Later
else :
print(col +' count plot \n')
sns.countplot(x =col, data =df)
sns.plt.title(col +' count plot')