0% found this document useful (0 votes)
35 views4 pages

VSG Ip Practical Index-1

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 PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views4 pages

VSG Ip Practical Index-1

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 PDF, TXT or read online on Scribd
You are on page 1/ 4

INDEX

NO PROGRAMS TITLE SIGN


PRACTICALS OF DATA HANDLING
1 Create a series object using the python sequence with 5 elements.
2 Create a series object "vowel" to store all vowels individually. Its index should be 1,2,3,4,5.
3 Create a series object using ND array that has 5 elements in the range 50 and100.
4 Create a series object using dictionary to that stores the no of students in each section of class 12th of
your school.
5 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.
6 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.
7 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.
8 Create a series object "population" to store population of 5 different metro cities and displays the
population that are more than 300000.
9 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.
10 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.
11 Create the following DataFrame “Sport” containing sport wise marks for five students.
Use 2D dictionary to create DataFrame.
Student Sport Mark
s
1. Jai Cricket 80
2. Raj Footbal 76
l
3. John Tennis 89
4. Karan Kabadd 92
i
5. Chandu Hockey 97
12 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.
13 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.
14 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
2014 2015 2016 2017
row labels.
Madhu 1000 2000 2400 2800
Write program to do the followings;
Kusum 1500 5000 5000 6000
1. Display row labels of ‘sales’
Kinshuk 2000 7000 7000 7000
2. Display column labels of ‘sales’
3. Display last two rows of the ‘sales’ Ankit 3000 1000 1000 8000
4. Display first two rows of the ‘sales’ Shruti 4000 1250 1250 9000
15 Create a DataFrame ‘sales2’ using dictionary as given below and write a 2018
program to append ‘sales2’ to the DataFrame ‘sales’ created in previous Madhu 1600
practical 14. Kusum 1100
Kinshuk 5000
Ankit 3400
Shruti 9000
16 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 transpose C2 Jeans XL 1350
• Display no of rows and column of ‘cloth’ C3 Shirt XL 900
• Count and display Non NA values for each column C4 Trouser L 1000
• Count and display Non NA values for each row C5 T-shirt XL 600
17 Create a DataFrame ‘cloth’ as given below and write program to
do followings: Name Size Price
• Change the name of Trouser to pant and jeans to denim C1 Jeans L 1200
• Increase price of all cloth by 100% C2 Jeans XL 1350
• Rename all the indexes to[C001,C002,C003,C004,C005] C3 Shirt XL 900
• Delete the data of C3(C003) from the ‘cloth’ C4 Trouser L 1000
• Delete size from ‘cloth’. C5 T-shirt XL 600
18 Create a DataFrame ‘aid’ as given below and write program to do
followings: Toys Books Shoes
1. Display the books and shoes only MP 7000 4300 6000
2. Display toys only UP 3400 3200 1200
3. Display quantity in MP and CG for toys and books AP 7800 5600 3280
4. Display quantity of books in AP. CG 4100 2000 3000
19 Create a DataFrame ‘aid’ as given below and write program to Toys Books Shoes
write the value of ‘aid’ to a comma separated file ‘aidfigures.csv’ MP 7000 4300 6000
on the disk. UP 3400 3200 1200
Do not write the row labels and column labels. AP 7800 5600 3280
CG 4100 2000 3000
20 Read the data in the file ‘aidfigures.csv’ into a DataFrame Toys Books Shoes
‘aidretrieved’ and display it. Now update the row labels and the MP 7000 4300 6000
column labels of ‘aidretrieved’ to be the same as the of ‘aid’ of UP 3400 3200 1200
practical 19.
AP 7800 5600 3280
CG 4100 2000 3000
21 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.
22 Techtipnow Automobiles is authorized dealer of Jan Feb Mar Apr May Jun
different bikes companies. They record the entire Honda 23 45 109 87 95 100
sales of bikes month wise as given below:- Suzuki 45 57 75 60 50 30
To get proper analysis of sale performance create TVS 97 80 84 68 80 108
multiple line chart on a common.
23 Given the school result data, analysis the English Maths Physics Chemistry IT
performance of the student on different 9 78 89 69 92 96
parameters, eg.:-subject wise or class wise. 10 89 91 84 90 98
Create a DataFrame for the above, plot 11 90 80 76 82 90
appropriate chart with title and legend. 12 94 98 90 96 100
24 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.
25 Take data of your interest from an open source aggregate and summarize it. Then plot it using
different plotting functions of the Matplotlib library.
26 Create a panda’s series from a dictionary of values and a ndarray

27 Given a Series, print all the elements that are above the 75th percentile
28 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
29 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
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 For the given table ‘Hospital’ write SQL PID PNAME ADMITDATE DEPT FEE
command to display name all patient S
admitted in month of may. AP/PT/001 Rahil Khan 21/04/2019 ENT 250
AP/PT/002 Jitendal Pal 12/05/2019 Cardio 400
AP/PT/003 Suman Lakra 19/05/2019 Cardio 400
AP/PT/004 Chandumal Jain 24/06/2019 Neuro 600
9 For the given table ‘Hospital’ Write SQL PID PNAME ADMITDATE DEPT FEES
command to Display patient number in AP/PT/001 Rahil Khan 21/04/2019 ENT 250
upper case with year of admission. AP/PT/002 Jitendal Pal 12/05/2019 Cardio 400
AP/PT/003 Suman Lakra 19/05/2019 Cardio 400
AP/PT/004 Chandumal 24/06/2019 Neuro 600
Jain
10 For the given table ‘Hospital’ Write PID PNAME ADMITDATE DEPT FEES
SQL command to Display first four AP/PT/001 Rahil Khan 21/04/2019 ENT 250
letter of the patient name along with AP/PT/002 Jitendal Pal 12/05/2019 Cardio 400
length of their name who admitted AP/PT/003 Suman Lakra 19/05/2019 Cardio 400
before may. AP/PT/004 Chandumal Jain 24/06/2019 Neuro 600
Marks
11 To display student id, Name, Student id Name DOB Email
DOB, Marks, Email of those SCS101101 Rahil Khan 21/04/2000 450 [email protected]
male student in ascending SCS101102 Jitendal Pal 12/05/2001 499 [email protected]
order of their names. SCS101103 Suman Lakra 19/05/2002 460 [email protected]
SCS101104 Chandumal Jain 24/06/2002 489 [email protected]
Marks
12 Describe the below table Student id Name DOB Email
SCS101101 Rahil Khan 21/04/2000 450 [email protected]
SCS101102 Jitendal Pal 12/05/2001 499 [email protected]
SCS101103 Suman Lakra 19/05/2002 460 [email protected]
SCS101104 Chandumal Jain 24/06/2002 489 [email protected]
Marks
13 Display student name Student id Name DOB Email
whose marks above 470. SCS101101 Rahil Khan 21/04/2000 450 [email protected]
SCS101102 Jitendal Pal 12/05/2001 499 [email protected]
SCS101103 Suman Lakra 19/05/2002 460 [email protected]
SCS101104 Chandumal Jain 24/06/2002 489 [email protected]
14 To display student id, Student id Name DOB Marks Email
Name, DOB of those SCS101101 Rahil Khan 21/04/2000 450 [email protected]
students who are born SCS101102 Jitendal Pal 12/05/2001 499 [email protected]
between ‘2000-04-21’ SCS101103 Suman Lakra 19/05/2002 460 [email protected]
and ‘2002-06-24’. SCS101104 Chandumal Jain 24/06/2002 489 [email protected]
15 To display student id, Student id Name Gender DOB Marks Email
Gender, Name, DOB , SCS101101 Rahil Khan M 21/04/2000 450 [email protected]
SCS101102 Jitendal Pal M 12/05/2001 499 [email protected]
Marks, Email in
SCS101103 Suman Lakra M 19/05/2002 460 [email protected]
descending order of their SCS101104 Chandumal M 24/06/2002 489 [email protected]
marks Jain

You might also like