首页 > 解决方案 > 为什么不和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

标签: pythonmachine-learningpipeline

解决方案


推荐阅读