import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
data = pd.read_csv('https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv')
print(data.columns)
Index(['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species'], dtype='object')
print(data.columns)
a = input("Input the column's name: ")
print('\n Run the cell below to know the box plot of {} column'.format(a))
plt.boxplot(data[a])
Index(['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species'], dtype='object') Input the column's name: sepal_width Run the cell below to know the box plot of sepal_width column
{'whiskers': [<matplotlib.lines.Line2D at 0x20208d9c5b0>, <matplotlib.lines.Line2D at 0x20208d9c910>], 'caps': [<matplotlib.lines.Line2D at 0x20208d9cc70>, <matplotlib.lines.Line2D at 0x20208d9cfd0>], 'boxes': [<matplotlib.lines.Line2D at 0x20208d9c250>], 'medians': [<matplotlib.lines.Line2D at 0x20208da7370>], 'fliers': [<matplotlib.lines.Line2D at 0x20208da76d0>], 'means': []}