IP Practical File
IP Practical File
V PUBLIC SCHOOL
PAKHOWAL ROAD, LUDHIANA
INFORMATICS
PRACTICES
COURSE CODE (065)
FOR AISSCE 2021 EXAMINATION
3
Using dictionary
Output:
4
Code:
Output:
5
Q. Write python program to create a dataframe
named teacher from the given data.
Code:
Output:
6
Code:
Output:
Code:
Output:
7
Q. Write python program to delete column Age from
teacher dataframe.
Code:
Output:
8
Q. Write python program to delete record of Mr.
Rakesh.
Code:
Output:
9
Output:
10
Code:
Output:
11
Code:
Output:
Code:
12
Output:
13
Output:
Code:
Output:
14
Q. Write python program to import a CSV file and
convert it into dataframe.
Code:
15
Output:
16
Q. Write python program to display first 10 records of
the CSV file.
Code:
Output:
17
Q. Write python program to display last 15 records of
the CSV file.
Code:
Output:
18
Q. Write python program to display row labels,
column labels, data types of each column and the
dimensions of the CSV file.
Code:
Output:
19
Output:
20
Q. Write python program to display average
LastWeekCount of each Rpo.
Code:
Output:
21
Q. Write a python program to export last week data
and save it as Last week details.csv.
Code:
Output:
22
Q. Plot a bar graph from the given data.
Code:
Output:
23
Q. Plot a line graph from two random arrays.
Code:
Output:
24
Q. Plot a horizontal bar graph for given data.
Code:
Output:
25
Q. Plot a histogram for given data.
Code:
Output:
26
27
About MySQL
MySQL is an open-source relational database
management system (RDBMS). Its name is
combinations of “My”, the name of co-
founderMichael
Widenius'sdaughter,and"SQL",theabbreviationfor
Structured QueryLanguage.
MySQLisfreeandopen-sourcesoftwareunderthe
termsoftheGNUGeneralPublicLicense,andisalso
availableunderavarietyofproprietarylicenses.MySQL
wasownedandsponsoredbytheSwedishcompany
MySQLAB,whichwasboughtbySunMicrosystems
(nowOracleCorporation).In2010,whenOracle
acquiredSun,Wideniusforkedtheopen-sourceMySQL
projecttocreateMariaDB.
Code:
29
Output:
Output:
30
Q. Display average, minimum, maximum weight,
height and marks from student table.
Code:
Output:
Output:
Output:
32
Code:
Output:
Output:
33
Q. Write SQL command to add a new column activity
into the student table.
Code:
Output:
Output:
34
Q. Display number of students in each activity.
Code:
Output:
Output:
35
Q. Write SQL command to perform mathematical
functions like (round,truncate,modulud,power)
Code:
Output:
36
Q. Write SQL command to perform text functions like
(trim,substr,lcase,ucase etc.)
37
Code:
Output:
38
39
40