0% found this document useful (0 votes)
12 views

IP Practical File

Uploaded by

singhjohnrose
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)
12 views

IP Practical File

Uploaded by

singhjohnrose
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/ 40

D.A.

V PUBLIC SCHOOL
PAKHOWAL ROAD, LUDHIANA

INFORMATICS
PRACTICES
COURSE CODE (065)
FOR AISSCE 2021 EXAMINATION

SUBMITTED BY: Joyy Goswami


CLASS: XII Science-B
ROLL NO:
SUBMITTED TO:
Mr Akash Tangri
1
About Python
Python programming language was developed by
Guido Van Rossum in February 1991. Python is easy to
learn yet powerful object oriented language. It is a very
high level programming language yet as powerful as
many other middle-level not so high level languages
like C,C++,Java etc.Though Python language came into
being in early 1990’s yet it is competing with ever
popular languages such as Java, C++ etc. in popularity
index.
2
About Pandas
Pandas is a software library written for the Python
programming language for data manipulation and
analysis. In particular, it offers data structures and
operations for manipulating numerical tables and time
series.The name is derived from the term "panel data",
an econometrics term for data sets that include
observations over multiple time periods for the same
individuals.

Q. Write python program to create Series.


Code:
Using list

Using numpy array

3
Using dictionary

Output:

Q. Create a series for following data and display all


the marks that are above the 75th percentile.

4
Code:

Output:

5
Q. Write python program to create a dataframe
named teacher from the given data.

Code:

Output:

Q. Write python program to display number of


teachers in each department.

6
Code:

Output:

Q. Write python program to add column Qualification


in the teacher data frame.
Qualifications =[‘Msc’,’MA’,’Bsc’,’BEd’,’Msc’]

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:

Q. Write python program to rename column Sal to


Salary.
Code:

9
Output:

Q. Write python program to increase salary of


teachers by 10%.

10
Code:

Output:

Q. Write python code to insert new row into the


teacher dataframe containing following data.

11
Code:

Output:

Q. Write python program to display teacher name and


salary.

Code:
12
Output:

Q. Write python program to display records of history


teachers.
Code:

13
Output:

Q. Write python program to display annual salary of


teachers.

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:

Q. Write python program to display RpoName wise


total LastWeekCount.
Code:

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.

MySQL is a component of the LAMP web application


software stack (and others), which is an acronym for
Linux,Apache,MySQL,Perl/PHP/Python.MySQLisused by
many database-driven web applications, including
Drupal, Joomla, phpBB, and WordPress. MySQL is also
used by many popular websites, including Facebook,
Flickr, MediaWiki, Twitter, and YouTube.
28
Q. Write SQL command to create a table student with
given structure.

Code:

Q. Write SQL commands to insert records into the


student table.
Code:

29
Output:

Q. Display student records in ascending order of


marks.
Code:

Output:

30
Q. Display average, minimum, maximum weight,
height and marks from student table.
Code:

Output:

Q. Display number of students from each city.


31
Code:

Output:

Q. Display records of students older than14 years in


increasing order of their weight.
Code:

Output:

Q. Display average height of student from each city.

32
Code:

Output:

Q. Display average weight and height of students of


different age.
Code:

Output:

33
Q. Write SQL command to add a new column activity
into the student table.
Code:

Output:

Q. Enter values into the activity column.


Code:

Output:
34
Q. Display number of students in each activity.
Code:

Output:

Q. Display records of students with weight more than


55 kg and heigh leass than 5.5 ft.
Code:

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

You might also like