457 Labs2
457 Labs2
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
import sklearn
import csv
St = pd.read_csv("Student22.csv")
6320
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 790 entries, 0 to 789
Data columns (total 8 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 Id 790 non-null int64
1 Math 790 non-null int64
2 Arabic 790 non-null int64
3 English 790 non-null int64
4 Sport 790 non-null int64
5 history 790 non-null int64
6 physics 790 non-null int64
7 Class 790 non-null object
dtypes: int64(7), object(1)
memory usage: 49.5+ KB
Id 0
Math 0
Arabic 0
English 0
Sport 0
history 0
physics 0
Class 0
dtype: int64
#Plot the Math variable and output(s) distributions and give your
comment
#math:
plt.figure(figsize=(15,5))
sns.countplot(x="Math", data=St)
Math
80 66
75 52
95 44
98 44
69 44
76 36
77 36
71 32
67 32
66 32
87 24
73 24
65 24
74 24
60 24
78 20
89 20
79 16
72 16
85 16
81 16
82 14
96 14
54 14
88 12
84 12
55 12
62 8
86 8
58 8
70 8
94 8
92 8
93 8
68 8
90 6
Name: count, dtype: int64
#Plot the Arabic variable and output(s) distributions and give your
comment
plt.figure(figsize = (15,5))
sns.countplot(x="Arabic", data=St)