0% 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.

Uploaded by

VINTAGE LOVER 17
Copyright
© © All Rights Reserved
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% 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.

Uploaded by

VINTAGE LOVER 17
Copyright
© © All Rights Reserved
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
You are on page 1/ 2

CLASS : XII

SUBJECT: INFORMATICS PRACTICES


UNIT :1 (PYTHON PANDAS- I ( Part-3-DATAFRAMES)- )
ASSIGNMENT

Q1. Create the following dataframes:

i) CricketPlayers from a list of dictionaries


containing names of five cricket players,
number of matches played and Average Score.

ii) Items from a list of dictionaries containing


names of five items, cost price, sales
price, discount(if any).

iii)Result from a dictionary of series


containing rollnumber of 6 students and
their percentage in last five years.

iv) Monuments from a dictionary of series


containing names of 10 monuments, their year
of built, place and who built them.

v) Countries from a list of dictionaries


containing names of 10 countries, its
national animal, bird and currency.
Q2. Consider the following dataframe RESULTSHEET:

UT1 Half UT2 Final


Yearly
Sharad 57 83 49 89
Mansi 86 67 87 90
Kanika 92 78 45 66
Ramesh 52 84 55 78
Ankita 93 75 87 69
Pranay 98 79 88 96

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

You might also like