-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcreate_bar_grah.py
27 lines (23 loc) · 943 Bytes
/
create_bar_grah.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding: utf-8 -*-
"""Create_bar_grah.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1v6ip3GitGI0xjNfCyN1cs8Q7Zqs8jo-v
"""
import pandas as pd
import matplotlib.pyplot as plt
data = [['E001', 'M', 34, 123, 'Normal', 350],
['E002', 'F', 40, 114, 'Overweight', 450],
['E003', 'F', 37, 135, 'Obesity', 169],
['E004', 'M', 30, 139, 'Underweight', 189],
['E005', 'F', 44, 117, 'Underweight', 183],
['E006', 'M', 36, 121, 'Normal', 80],
['E007', 'M', 32, 133, 'Obesity', 166],
['E008', 'F', 26, 140, 'Normal', 120],
['E009', 'M', 32, 133, 'Normal', 75],
['E010', 'M', 36, 133, 'Underweight', 40] ]
df = pd.DataFrame(data, columns = ['EMPID', 'Gender',
'Age', 'Sales',
'BMI', 'Income'] )
df.hist()
plt.show()