Payal - 2 - Practical (1) - Edited
Payal - 2 - Practical (1) - Edited
Practical 2
In [1]:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
In [2]: sp = pd.read_csv("/home/student/Desktop/Dataset/AcademicPerformanceNEW.csv"
In [3]: sp.isnull()
In [7]: sp.notnull()
0 66 97 3
1 91 76 2
2 72 79 2
3 99 84 2
4 62 87 3
5 69 50 1
6 77 93 3
7 62 96 3
8 75 77 2
9 79 85 3
10 61 80 2
11 61 80 2
12 78 90 3
13 66 98 3
14 80 95 3
15 72 84 2
16 80 79 2
17 60 85 3
18 80 89 3
19 72 76 2
20 67 91 3
21 69 77 2
22 64 75 2
23 74 100 3
24 77 84 2
25 75 86 3
26 65 96 3
27 64 95 3
28 69 75 2
In [11]: new_data = sp.dropna(axis=0 , how ='any')
new_data
(array([1, 3]),)
(array([], dtype=int64),)
In [14]: col = ['math score' , 'reading score','placement score']
sp.boxplot(col)
In [ ]: