Answers for "seaborn boxplot multiple for each column"

1

seaborn boxplot multiple columns

>>> ax = sns.boxplot(x="day", y="total_bill", hue="smoker",
...                  data=tips, palette="Set3")
Posted by: Guest on December-28-2020
0

seaborn boxplot multiple for each column

import numpy as np; np.random.seed(42)
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

df = pd.DataFrame(data = np.random.random(size=(4,4)), columns = ['A','B','C','D'])

sns.boxplot(x="variable", y="value", data=pd.melt(df))

plt.show()
Posted by: Guest on June-08-2021

Code answers related to "seaborn boxplot multiple for each column"

Browse Popular Code Answers by Language