Issue with seaborn in sublime

后端 未结 2 661
心在旅途
心在旅途 2020-12-18 17:05

I am having an issue with seaborn in the sublime text editor.

import pandas as pd 
import seaborn as sns

data = pd.read_csv(\'train.csv\')
sns.         


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-18 17:20

    As Arshad said in the comments, by just adding kind="count" to the command, it solves the issue. In this case, the code should look like the following.

    import pandas as pd 
    import seaborn as sns
    
    data = pd.read_csv('train.csv')
    sns.factorplot('Sex', data=data, kind="count")
    

提交回复
热议问题