0% found this document useful (0 votes)
26 views6 pages

Ip Practical Index

IP practical index

Uploaded by

vishwa292007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views6 pages

Ip Practical Index

IP practical index

Uploaded by

vishwa292007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

INDEX

N PROGRAMS TITLE SIG


O N
PRACTICALS OF DATA HANDLING
1 Create a panda’s series from a dictionary of values and a ndarray
2 Given a Series, print all the elements that are above the 75th percentile.
3 Create a series object using the python sequence with 5 elements.
4 Create a series object "vowel" to store all vowels individually. Its index should be
1,2,3,4,5.
5 Create a series object using ND array that has 5 elements in the range 50 and100.
6 Create a series object using dictionary to that stores the no of students in each
section of class 12th of your school.
7 Total no. of students to be admitted is 350 in yojna school every year.
Write code to create a series object "School" that stores these total no of students for
the year 2015 to2022.
8 Create a series object "item" the stores rate of each product as given below:
Soap 54
Salt 20
Sugar 39
Write code to modify rate of soap to 44 and sugar to 42 print the charged rate.
9 No. of students in class 11 and class 12 in three streams("Science", "Commerce",
"Humanities") are stored in 2 series object class 11 and class 12.
Write code to find total no of students in class 11 and class 12.
10 Create a series object "population" to store population of 5 different metro cities and
displays the population that are more than 300000.
11 Create a series "Temp" that stores temperature of seven days in it. Its index should
be "Sunday" and "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 and Friday.
4.Display temp from Tuesday to Friday.
5.Display square of all temperature.
12 Create a Data Frame quarterly sales where each row contains the item category,item
name, and expenditure. Group the rows by the category and print the total
expenditure per category.
13 Create a data frame for examination result and display row labels, column labels
data types of each column and the dimensions and also Filter out rows based on
different criteria such as duplicate rows.
14 Create a Series object “Employee” that stores salary of the 7 employees.
Write script to
1. Total no of elements.
2. Series is empty or not
3. Series consist nan value or not
4. Count NON-NA elements
5. Axis labels.
15 Create the following DataFrame “Sport” containing sport wise marks for five
students.
Stude Sport Mar Use 2D dictionary to create DataFrame.
nt ks
1 Jai Cricke 80
. t
2 Raj Footb 76
. all
3 John Tennis 89
.
4 Karan Kabad 92
. di
5 Chand Hocke 97
. u y
16 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.
17 Consider two series object staff and salaries that store the number of people in various office
branches and salaries distributes in these braches 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.

18 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.
201 201 201 201
Write program to do the followings;
4 5 6 7
1. Display row labels of ‘sales’
Madhu 100 200 240 280
2. Display column labels of ‘sales’
0 0 0 0
3. Display last two rows of the ‘sales’
Kusum 150 500 500 600
4. Display first two rows of the ‘sales’
0 0 0 0
Kinshuk 200 700 700 700
0 0 0 0
Ankit 300 100 100 800
0 0 0 0
Shruti 400 125 125 900
0 0 0 0
19 2018
Madhu 1600
Kusum 1100
Kinshuk 5000
Ankit 3400
Shruti 9000
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.

20 Create a DataFrame ‘cloth’ as given below and write


program to do followings: Name Size Price
 Check ‘cloth’ is empty or not C1 Jeans L 1200
 Change ‘cloth’ such that it becomes its C2 Jeans XL 1350
transpose C3 Shirt XL 900
 Display no of rows and column of ‘cloth’ C4 Trouse L 1000
 Count and display Non NA values for each r
column C5 T-shirt XL 600
 Count and display Non NA values for each row
21 Create a DataFrame ‘cloth’ as given below and write
Name Size Price
program to do followings:
 Change the name of Trouser to pant and jeans C1 Jeans L 1200
to denim C2 Jeans XL 1350
 Increase price of all cloth by 100% C3 Shirt XL 900
 Rename all the indexes C4 Trouse L 1000
r
to[C001,C002,C003,C004,C005]
 Delete the data of C3(C003) from the ‘cloth’
 Delete size from ‘cloth’.
22 Create a DataFrame ‘aid’ as given below and write
program to do followings: Toys Book Shoe
1. Display the books and shoes only s s
2. Display toys only M 7000 4300 6000
3. Display quantity in MP and CG for toys and P
books UP 3400 3200 1200
4. Display quantity of books in AP. AP 7800 5600 3280
CG 4100 2000 3000

23 Toys Book Shoe


s s
M 7000 4300 6000
P
UP 3400 3200 1200
AP 7800 5600 3280
CG 4100 2000 3000
Create a DataFrame ‘aid’ as given below and write program to write the value of
‘aid’ to a comma separated file ‘aidfigures.csv’ on the disk.

Do not write the row labels and column labels.

24 Toys Book Shoe


s s
M 7000 4300 6000
P
U 3400 3200 1200
P
AP 7800 5600 3280
C 4100 2000 3000
G
Read the data in the file ‘aidfigures.csv’ into a DataFrame ‘aidretrieved’ and display
it. Now update the row labels and the column labels of ‘aidretrieved’ to be the same
as the of ‘aid’ of practical 19.

25 Collect and store total medals won by counties in Olympic games and represent it
in from of bar chart with title to compare on analyze data.
26 Ja Fe Mar Ap May Jun
n b r
Hond 23 45 109 87 95 100
a
Suzu 45 57 75 60 50 30
ki
TVS 97 80 84 68 80 108
Techtipnow Automobiles is authorized dealer of different bikes companies. They
record the entire sales of bikes month wise as given below:-

To get proper analysis of sale performance create multiple line chart on a common.

27 Englis Math Physic Chemistr IT


h s s y
9 78 89 69 92 96
10 89 91 84 90 98
11 90 80 76 82 90
12 94 98 90 96 10
0
Given the school result data, analysis the performance of the student on different
parameters, eg.:-subject wise or class wise.

Create a DataFrame for the above, plot appropriate chart with title and legend.

28 The following seat bookings are the daily records of a month December from PVR
cinemas.
124,124,1335,156,128,189,200,150,200,124,143,142,130,130,156,128,189,200,130,
142,167,180,143,143,135,150,200,189,189,142.
Construct a histogram from above data with 10 bin.

29 Take data of your interest from an open source aggregate and summarize it. Then
plot it using different plotting functions of the Matplotlib library.
30 Given the school result data, analyses the performance of the students on different
parameters, e.g subject wise or class wise. For the Data frames created above,
analyze, and plot appropriate charts with title and legend. Take data of your interest
from an open source (e.g. data.gov.in), aggregate and summarize it. Then plot it
using different plotting functions of the Matplotlib library.
MYSQL PRACTICALS
1 Create a student table with the student id, name, marks as attributes where the
student id is the primary keys.
2 In the table ‘Student’ created in practial26, insert the details of new students.
3 Write SQL command to get the details of the students with marks more than 80.
4 Write SQL command to find the min , max , sum and average of the marks in a
student marks table..
5 Delete the details of a student table created in practical 26.
6 Find the total number of customers from each country in table using group by.
7 Write a SQL query to order the table in descending order of the marks.
8 PID PNAME ADMITDA DEPT FE
TE ES
AP/PT/ Rahil Khan 21/04/201 ENT 25
001 9 0
AP/PT/ Jitendal Pal 12/05/201 Cardi 40
002 9 o 0
AP/PT/ Suman 19/05/201 Cardi 40
003 Lakra 9 o 0
AP/PT/ Chandumal 24/06/201 Neur 60
004 Jain 9 o 0
For the given table ‘Hospital’ write SQL command to display name all patient
admitted in month of may.

9 PID PNAME ADMITDA DEPT FEES


TE
AP/PT/ Rahil Khan 21/04/201 ENT 250
001 9
AP/PT/ Jitendal 12/05/201 Cardi 400
002 Pal 9 o
AP/PT/ Suman 19/05/201 Cardi 400
003 Lakra 9 o
AP/PT/ Chanduma 24/06/201 Neur 600
004 l Jain 9 o
For the given table ‘Hospital’ Write SQL command to Display patient number in
upper case with year of admission.

10 PID PNAME ADMITDA DEP FEE


TE T S
AP/PT/001 Rahil Khan 21/04/201 ENT 250
9
AP/PT/002 Jitendal Pal 12/05/201 Cardi 400
9 o
AP/PT/003 Suman 19/05/201 Cardi 400
Lakra 9 o
AP/PT/004 Chandumal 24/06/201 Neur 600
Jain 9 o
For the given table ‘Hospital’ Write SQL command to Display first four letter of the
patient name along with length of their name who admitted before may.

11 Student Name DOB Mark


Email
id
s

SCS1011 Rahil Khan 21/04/2000 45 [email protected]


01 0 m
SCS1011 Jitendal Pal 12/05/2001 49 [email protected]
02 9 m
SCS1011 Suman 19/05/2002 46 [email protected]
03 Lakra 0 m
SCS1011 Chandumal 24/06/2002 48 [email protected]
04 Jain 9 m
To display student id, Name, DOB, Marks, Email of those male student in ascending
order of their names.

12 Student id Name DOB Mark


s
Email
SCS101101 Rahil Khan 21/04/2000 45 [email protected]
0 m
SCS101102 Jitendal Pal 12/05/2001 49 [email protected]
9 m
SCS101103 Suman 19/05/2002 46 [email protected]
Lakra 0 m
SCS101104 Chandumal 24/06/2002 48 [email protected]
Jain 9 m
Describe the below table

13 Student id Name DOB Mark


s
Email
SCS101101 Rahil Khan 21/04/2000 450 [email protected]
m
SCS101102 Jitendal Pal 12/05/2001 499 [email protected]
SCS101103 Suman Lakra 19/05/2002 460 [email protected]
SCS101104 Chandumal 24/06/2002 489 [email protected]
Jain
Display student name whose marks above 470.

14 Student Name DOB Mark Email


id s
SCS1011 Rahil Khan 21/04/2000 450 [email protected]
01
SCS1011 Jitendal Pal 12/05/2001 499 [email protected]
02
SCS1011 Suman 19/05/2002 460 [email protected]
03 Lakra
SCS1011 Chandumal 24/06/2002 489 [email protected]
04 Jain
To display student id, Name, DOB of those students who are born between ‘2000-04-
21’ and ‘2002-06-24’.

15 Student id Name Gende DOB Mark Email


r s
SCS10110 Rahil Khan M 21/04/200 450 [email protected]
1 0 m
SCS10110 Jitendal Pal M 12/05/200 499 [email protected]
2 1 m
SCS10110 Suman M 19/05/200 460 [email protected]
3 Lakra 2 m
SCS10110 Chandumal M 24/06/200 489 [email protected]
4 Jain 2 m
To display student id, Gender, Name, DOB , Marks, Email in descending order of
their marks

You might also like