bugsyb
bugsyb

Reputation: 6051

How to choose what axes to plot on in Pandas (Python)

How do I select what axes to plot on in pandas?

For example, if I were graphing a countplot in seaborn, I would have written the following:

sns.countplot(females_xt, ax = axes[0][0])

However, I'm not sure how to do this with pandas' plotting capabilities. Any help would be appreciated!

Thanks

enter image description here

Upvotes: 0

Views: 211

Answers (1)

Rayhane Mama
Rayhane Mama

Reputation: 2424

It is the same parameter ax in pandas.dataframe.plot like:

female_xt.plot(kind ='bar',stacked = True,ax=my_ax)

Upvotes: 1

Related Questions