Krish Practical Python
Krish Practical Python
MAHYAVANSHI
ROLL NO:- 20
CLASS:-12-B (SCIENCE)
SUBJECT:-INFORMATICS
PRACTICES
TOPIC:-PANDAS,NUMPY,
&MATPLOTLIB
SR NO TITLE PAGE SIGN
NO
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
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
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.