What is the pyplot equivalent of seaborn barplot?

Refresh

1 weeks ago

Views

5 time

0

I want to convert this barplot:

sns.barplot(x='Pclass', y='Survived', data=train_df)

using the built-in plot function from Pandas dataframe or pyplot How can I translate this seaborn barplot into a pyplot bar chart?

1 answers

1

how about

train_df.plot(x='Pclass', y='Survived', kind='bar')