Answers for "box plot in pandas python"

0

box plot python code

import pandas as pd 
import matplotlib.pyplot as plt 
% matplotlib inline
  
  
# load the dataset
df = pd.read_csv("tips.csv")
  
# display 5 rows of dataset
print(df.head())  

df.boxplot(by ='day', column =['total_bill'], grid = False)
Posted by: Guest on May-22-2021
1

plt boxplot pandas

>>> data = np.random.randn(25, 4)
>>> df = pd.DataFrame(data, columns=list('ABCD'))
>>> ax = df.plot.box()
Posted by: Guest on December-03-2020

Python Answers by Framework

Browse Popular Code Answers by Language