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.
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")
UserWarning: The factorplot
function has been renamed to catplot
.
The original name will be removed in a future release. Please update your code. Note that the default kind
in factorplot
('point'
) has changed 'strip'
in catplot
.
warnings.warn(msg).
Hence I used:
sns.catplot('Sex',data=titanic_df,kind='count') and it works for me.