Skip to content

Instantly share code, notes, and snippets.

@HSShashank
Created August 25, 2021 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HSShashank/aa0893dd2e1de1301bc829de98997c90 to your computer and use it in GitHub Desktop.
Save HSShashank/aa0893dd2e1de1301bc829de98997c90 to your computer and use it in GitHub Desktop.
fig, axes = plt.subplots(1, 2, figsize=(15, 5))
sns.countplot(ax=axes[0], data = df, x = 'LABEL')
sns.countplot(ax=axes[1], data = df, x = 'LABEL', hue = 'GENDER')
df.drop(columns = 'GENDER',inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment