PC File
PC File
Source code;
Output;
Practical 2
Source code;
Output:
Practical 3
Problem statement:Create a Series
object using dictionary to that stores
the no of students in each section of
class 12th of your school;
Source code;
Output:
Practical 4
Problem statement:Total no of students
to be admitted is 3500 in ‘Sunshine
public school’ every year. Write code to
create a Series object ‘School’ that
stores these total no. of students for
the year 2020 to 2023:
Source code;
Output:
Practical 5
Problem statement: Create a Series
object ‘Item’ that stores rate of each
product as given below:
Soap 54
Salt 20
Sugar 39
Write code to modify rate of soap to 15
and sugar to 15. Print the changed
rate:
Source code;
Output:
Practical 6
Problem statement: No of students in
class 11 and class 12 in three streams
(science, commerce and humanities)
are stored in 2 series object class 11
and class 12. write code to find total no
of students in class 11 & class 12
stream wise:
Source Code;
Screenshot:
Output:
Practical 7
Problem statement: Create a series ‘temp’
that stores temperature of seven days in it.
Its index should be ‘Sunday’, ‘Monday’ ….
Write script to
1. Display temp of first 3 days.
2. Display temp of last 3 days.
3. Display all temp in reverse order like
Saturday, Friday,….
4. Display temp from Tuesday to Friday.
5. Display square of all temperature.:
Source code;
Output:
Practical 8
Problem statement: Create a Series
object ‘population’ to store population of 5
different metro cities and display the
population that are more than 3000000:
Source code;
Output:
Practical 9
Problem statement: Create the following
dataframe ‘Sport’ containing sport wise
marks for five students. Use 2D dictionary to
create dataframe.
Source code;
Output:
Practial 10
Problem statement: Create a dataframe
from list containing dictionaries of most
economical bike with its name and rate of
three companies. Company name should be
the row labels.
Source code;
Output:
Practtical 11
Problem statement: Create a dataframe
‘aid’ as given below and write program to do
followings:
Toys Books Shoes
CG 5500 70000 10000
MP 70000 10000 50000
UP 20000 12000 80000
AP 11000 16000 60000
Source code;
Output :
Practical 12
Problem statement:Consider two series
object staff and salaries that stores the
number of people in various office branches
and salaries distributed in these branches
respectively. Write a program to create
another Series object that stores average
salary per branch and then create a
dataframe object from these Series object.
After creating dataframe rename all row
labels with Branch name.
Source code;
Output:
Practical 13
Problem statement:Create the following
dataframe ‘sales’ containing year wise sales
figure for five sales persons in INR. Use the
year as column labels, and sales person
names as row labels
2020 2021 2022 2023
Madhu 10000 20000 24000 28000
Kusum 15000 18000 50000 60000
Kinshuk 20000 22000 70000 70000
Ankit 30000 30000 10000 80000
Shruti 40000 45000 12500 90000
Output:
Practical 14
Problem statement: Create a dataframe
‘sales2’ using dictionary as given below and
write a program to append ‘sales2’ to the
dataframe ‘sales’ created in previous
practical 14.
2023
Anju 16000
Amit 11000
Anjali 50000
Bhumi 34000
Chinki 90000
Source code;
Output:
Practical 15
Problem statement: Create a dataframe
‘cloth’ as given below and write program to
do followings:
Output:
Practical 16
Problem statement: Collect and store
total medals won by 10 countries in Olympic
games and represent it in form of bar chart
with title to compare an analyze data.
Source code;
Output:
Practical 17
Problem statement: The following seat
bookings are the daily records of a month
December from PVR cinemas:
125,125,135,150,128,190,200,150,155,
150,200,124,143,142,130,130,170,189,200,
130,
142,165,180,143,143,135,156,150,200,189,
189,142 Construct a histogram from above
data with 10 bin..
Source code;
Output:
Practical 18
Problem statement: Take data of your
interest from an open source (e.g.
data.gove.in), aggregate and summarize it.
Then plot it using different plotting functions
of the Matplotlib library.
Source code;
Output:
PRACTICal 19
Problem statement:Program to plot a sine
wave using line chart.
Source code:
Output: