Ip Practical Index
Ip Practical Index
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.
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.
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.