python plot box code example
Example 1: boxplot python
import numpy as np
import matplotlib.pyplot
matrix=np.random.rand(10,10)
plt.boxplot(matrix)
Example 2: 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)