Answers for "boxplot for all columns in python"

0

boxplot for all columns in python

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))
Posted by: Guest on February-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language