Consider the following DataFrame, classframe
|
Rollno |
Name |
Class |
Section |
CGPA |
Stream |
St1 |
1 |
Aman |
IX |
E |
8.7 |
Science |
St2 |
2 |
Preeti |
X |
F |
8.9 |
Arts |
St3 |
3 |
Kartikey |
IX |
D |
9.2 |
Science |
St4 |
4 |
Lakshay |
X |
A |
9.4 |
Commerce |
Write commands to :
i. Add a new column ‘Activity’ to the Dataframe
ii. Add a new row with values ( 5 , Mridula ,X, F, 9.8, Science)