list of seaborn color palette
sns.color_palette("rocket", as_cmap=True)
list of seaborn color palette
sns.color_palette("rocket", as_cmap=True)
seaborn countplot
## for single column
sns.countplot(y=df.col)
## for multiple columns
fig, ax = plt.subplots(1, 3, figsize=(25, 10))
fig.suptitle('Count Plot', fontsize=16, y=0.92)
columns = ['Income', 'Age', 'Purchased']
for i, col in enumerate(columns):
graph = sns.countplot(y=df[col], ax=ax[i])
ax[i].set_title(*[col])
graph.bar_label(graph.containers[0])
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us