Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Multiple Box Plot using Seaborn

# Visualization is the easiest way to have an inference about the overall data and the outliers.
n = 1
plt.figure(figsize=(18,15))
for column in df.describe().columns:
  plt.subplot(5, 4, n)
  n = n+1
  sns.boxplot(df[column])
  plt.tight_layout()
Comment

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()
Comment

PREVIOUS NEXT
Code Example
Python :: python excel file 
Python :: how to initialize set in python 
Python :: python frozenset() 
Python :: numpy concatenation python 
Python :: python list of dictionaries to list 
Python :: import login required 
Python :: seaborn library in python 
Python :: concact geodataframe python 
Python :: plot scatter and line together 
Python :: python 2.7 get user input 
Python :: check all true python 
Python :: pandas: split string, and count values? 
Python :: how to show bar loading in python in cmd 
Python :: download unsplash images python no api 
Python :: django forms date picker 
Python :: load png to python 
Python :: python not in 
Python :: mean python 
Python :: download image from url selenium python 
Python :: python array join 
Python :: pandas dataframe drop rows with -ve in column value 
Python :: dictionary in python 
Python :: python tkinter dynamic toggle button 
Python :: basic python programs 
Python :: Use a callable instead, e.g., use `dict` instead of `{}` 
Python :: pandas pivot table 
Python :: python palindrome check 
Python :: Normalize columns in pandas dataframe 
Python :: write python 
Python :: remove whitespace from data frame 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =