0

Can I use a single FacetGrid object to plot two different types of plots side by side ? I have tried plotting using two different FacetGrids but I can not get them side by side.

dataframe = pd.read_csv('xyz.csv')
#dataframe.head()

This is what my dataset looks like.

DATASET

sns.FacetGrid(dataframe, hue = 'status', height = 5).map(sns.histplot, 'age').add_legend()
sns.FacetGrid(dataframe, hue = 'status', height = 5).map(sns.distplot, 'age').add_legend()

OUTPUT

Thank you.

Trenton McKinney
  • 56,955
  • 33
  • 144
  • 158
Walker
  • 33
  • 5

0 Answers0