python - 为什么不和seaborn一一了解剧情
问题描述
sns.set_style("whitegrid")
def rocket(df):
for i in df.columns:
print(i)
try:
if df[i].dtypes=="O":
sns.countplot(x=df[i],data=df)
print('******************************************************************')
else:
sns.scatterplot(x=df[i],data=df)
print('******************************************************************')
plt.show()
except TypeError :
print("Type Error")
pass
#plz run it
解决方案
推荐阅读
- javascript - ngFor 在列表上而不创建中间变量
- reactjs - SymBrowser_ModifyWindowOpenWithTarget 浏览器错误
- javascript - javascript中是否有\ n的替代拼写?
- django - Django:Queryset distinct 子句性能问题
- javascript - 限制表单外观和自定义表单处理程序应用之间的延迟
- url - 在 Joomla 中,如何创建与已删除页面具有相同别名的页面?
- html - CSS:弯角+扩展
- javascript - 下划线模糊搜索值的返回键
- xamarin - 页面打开时如何在 Xamarin 选择器中设置 SelectedItem
- xamarin - 为什么 Xamarin.Forms 应用不能在 Chromebook 上运行?