12 IP Unit 1 Python Pandas I (Part 3 Dataframes) Assignment
The document provides instructions for creating dataframes from lists and dictionaries containing student and other data, and performing operations on an existing RESULTSHEET dataframe including adding/deleting rows and columns, renaming values, and displaying subsets of data. The student is asked to create 5 dataframes from provided data, and perform 14 operations on the RESULTSHEET dataframe including sorting, filtering, and displaying selected records and columns.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
64 views2 pages
12 IP Unit 1 Python Pandas I (Part 3 Dataframes) Assignment
The document provides instructions for creating dataframes from lists and dictionaries containing student and other data, and performing operations on an existing RESULTSHEET dataframe including adding/deleting rows and columns, renaming values, and displaying subsets of data. The student is asked to create 5 dataframes from provided data, and perform 14 operations on the RESULTSHEET dataframe including sorting, filtering, and displaying selected records and columns.
Here, Names of the students are row labels and term
names (UT1, Half Yearly, UT2 and Final) are the column labels. Answer the following questions based on the above dataframe:
I. Change the row labels from student name to roll
numbers from 1 to 6. II. Change the column labels to Term1, Term2, Term3, Term4. III. Add a new column Internal Assessment with values ‘A’, ‘A’,’B’,’A’,’C’, ‘B’ IV. Add a new row for the student with name = Asatha and marks equal to 49, 56, 75,58. V. Delete the first row VI. Delete the third column VII. Rename Mansi to Mahak VIII. Display 2nd row with all columns IX. Display marks in Half Yearly and Final of all students X. Display all marks of students from Mansi to Ankita XI. Display marks of Mansi to Ankita in UT1 and UT2 XII. Display marks of Kanika and Ankita in Half Yearly and Final XIII. Display first 3 records XIV. Display last four records