Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

NAME:-KRISH

MAHYAVANSHI
ROLL NO:- 20
CLASS:-12-B (SCIENCE)
SUBJECT:-INFORMATICS
PRACTICES
TOPIC:-PANDAS,NUMPY,
&MATPLOTLIB
SR NO TITLE PAGE SIGN
NO

7 To write a Python program to


attributes of the Series

8 write a Python program to plot a


Line chart to depict the changing
weekly apple and Banana prices for
five weeks. Also, give appropriate
axes labels, title and keep marker
style as Diamond and marker edge
color as ‘yellow’ for banana

9 To write a Python program to plot a


Multiple Bar chart for top 5 countries
and their natural resources

10 To write a Python program to


plot a Histogram for the
following class interval or
range. Also, give appropriate
axes name, title and edege color
as ‘red’.

11 To write a Python program to plot


a Bar chart for netflix shows and
their watch hours specify each
bar with different colors. Also,
give proper title and axes labels
for the bar chart

12 Create a pandas series from a


dictionary of values of and an ndays
SR TITLE PAGE SIGN
NO NO

13 Give a series,print all the elements that are above


the 75th percentile

14 Create a dataframe quarterly sales where each row


contains the item category,item name and
expenditure,group the rows by the category and
print total expenditure per category
15 Create a database for examination result and
display row labels,columns labels,datatype of each
column and the dimension
16 Filter out rows base on criteria different criteria
such as duplicate rows

17 write a Python program to create a Series object


that stores the Initial budget allocated(10000/-
each) for the four quarters of the year: Qtr1, Qtr2,
Qtr3 and Qtr4
18 write a Python program to create a Series object
that stores the Section names ('A','B','C') as the
index and Contribution made by them respectively
(7269,69420nil) as values
19 To create a program in python to
perform following mathematical
Operations on Two Series objects: (i)
Addition (ii) Subtraction(iii) Multiplication
(iv) Division
1)To write a Python program to create a Series using
list of Marks of 10 students and display first 5
Students’ marks and Last 2 Students’ marks from
Series object
INPUT:-

OUTPUT:-
2)To write a Python program to
create a panda’s Data Frame for the
following table Using Nested list:
INPUT

OUTPUT
3)To write a Python program to create a
panda’s DataFrame called Students for the
following table and demonstrate iterrows and
iteritems
INPUT
OUTPUT

Output for Output for


Iterrows() Iteritems ()
4) To write a Python program to
create a Series to store 5
students Percentage Using
dictionary and print all the
elements that are above 75
percentage.
INPUT

OUTPUT
5)To write a Python program to
create a panda’s DataFrame called
DF for the following table using
Dictionary of List and display the
details of students whose
Percentage is more than 85.
INPUT

OUTPUT
6)To write a Python program to create a
panda’s DataFrame called DF for the following
table Using Dictionary of List and perform the
following operations

(i)To Display only column 'Toys' from DataFrame


DF.
(ii)To Display the row details of 'AP' and 'OD' from
DataFrame DF.
(iii)To Display the column 'Books' and 'Uniform' for
'M.P' and 'U.P' from DataFrame DF.
(iv)To Display consecutive 3 rows and 3 columns
from DataFrame DF.
INPUT

OUTPUT
create a Series using list and
7) To write a Python display the following
program to attributes (ii) dtype (iii) size (iv) shape (v)
hasnans
of the Series: (i) index

INPUT

OUTPUT
12) To Write a Python program to
store the details of Employees such
as Emp no, Name, Salary into a
Employee.csv file. Also, write a code
to read employee details from csv
INPUT file

OUTPUT
13)Create a pandas series from
a dictionary of values of and
an ndays

OUTPUT
(14)Give a series,print all the
elements that are above the
75th percentile
INPUT

OUTPUT
15)Create a dataframe quarterly sales
where each row contains the item
category,item name and expenditure,group
the rows by the category and print total
expenditure per category
INPUT

OUTPUT
(16)Create a database for examination result
and display row labels,columns
labels,datatype of each column and the
dimension
Output
17)Filter out rows base on
criteria different criteria such
as duplicate rows

Output
17) write a Python program to create a
Series object that stores the Initial
budget allocated(10000/- each) for the
four quarters of the year: Qtr1, Qtr2,
Qtr3 and Qtr4
18) write a Python program to create a
Series object that stores the Section
names ('A','B','C') as the index and
Contribution made by them
respectively (7269,69420nil) as values.
19)To create a program in
python to perform following
mathematical Operations on Two
Series objects: (i) Addition (ii)
Subtraction(iii) Multiplication (iv)
Division.

You might also like