-
Notifications
You must be signed in to change notification settings - Fork 1
/
Data_Visualization.py
63 lines (29 loc) · 697 Bytes
/
Data_Visualization.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python
# coding: utf-8
# # Visualizing the Data Median Points using Seaborn BoxPLot
# In[1]:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sn
# In[2]:
from DataPreprocessing import *
# In[3]:
data
# In[4]:
sns.boxplot(x = 'age', data = data, palette="vlag")
plt.title('Age')
plt.show()
# In[5]:
sns.boxplot(x = 'education-num', data = data,palette="vlag")
plt.title('Education-Number')
plt.show()
# In[6]:
sns.boxplot(x= 'sex', data = data, palette="vlag")
plt.title('Sex')
plt.show()
# In[7]:
sns.boxplot(x = 'hours-per-week', data = data, palette="vlag")
plt.title('Hours per Week')
plt.show()
# In[ ]: