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

Ip Practical File

The document contains a certificate certifying that Sahejdeep Singh of Class XII completed an Informatics Practices project on Data Analysis during the 2023-2024 academic session according to CBSE guidelines and was signed by internal and external examiners. It also includes an acknowledgement from Sahejdeep Singh thanking his teacher and school staff for their support and guidance in completing the project. The rest of the document contains solutions and outputs for 10 practical exercises on data handling using Pandas and Python DataFrames, 5 exercises on Python Matplotlib plotting, and 10 database queries using SQL.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
155 views

Ip Practical File

The document contains a certificate certifying that Sahejdeep Singh of Class XII completed an Informatics Practices project on Data Analysis during the 2023-2024 academic session according to CBSE guidelines and was signed by internal and external examiners. It also includes an acknowledgement from Sahejdeep Singh thanking his teacher and school staff for their support and guidance in completing the project. The rest of the document contains solutions and outputs for 10 practical exercises on data handling using Pandas and Python DataFrames, 5 exercises on Python Matplotlib plotting, and 10 database queries using SQL.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 29

CERTIFICATE

This is to certify that SAHEJDEEP SINGH of


Class – XIIth, GURU HARKISHAN PUBLIC
SCHOOL has successfully completed his
Informatics Practices project entitled Data
Analysis, during academic session 2023-
2024, as per the guidelines of the Central
Board of Secondary Education.

Signature of Internal Examiner

Signature of External Examiner

__________________________________
ACKNOWLEDGEMENT

I am extremely grateful to MR
SARANJEET SINGH, teacher of
department of Informatics Practices for
her guidance and useful suggestions,
which helped me in completing the
project work on time. I would also like to
thank all teaching & non-teaching staff
of Informatics Practices department who
helped me directly or indirectly in the
completion of this project. Finally, yet
importantly, I would like to express my
heartfelt to my beloved parents for their
blessings, my friends/classmates for help
and wishes for the successful completion
of this project.
DATA HANDLING USING PANDAS
Practical 1- create a series object using a python
sequence with 5 elements

Solution :

OUTPUT
Practical 2- create a series object ‘vowel’ to store all
vowels individually. Its index should be 1,2,3,4 and 5

Solution:

Output:
Practical 3- create a series object using ndarray that
has 5 elements in the range 50 and 100

Solution:

Output:
Practical 4:
Create a series using dictionary that stores no of
students in each section of class 12th of your school

Solution:

Output:
Practical 5:
Total no of students to be admitted is 350 in yojna
school every year. Write a code to create a series
object “school”that stores total no of students from
the year 2015-2022

Solution:

Output:
Practical 6:
Create a series object “item” that stores rate of
each product as given below
Soap-54
Salt-20
Sugar-39
Write code to modify soap to 44 and sugar to 42

Solution:

Output:
Practical 7:
No of students in class 11 and class 12 in three
streams (science, commerce and humanities) are
stored in 2 series obiect class 11 and class 12. write
code to find total no of
students in class 11 8 class 12 stream wise:

solution:

Output:
Practical 8:
Create a Series object 'population' to store
population of 5 different metro cities and
display the population that are more than 300000:

solution:

Output:
Practical 9:
Create a series 'temp' that stores temperature of seven days in it. Its
index should be
'Sunday, '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, Friday.....
4. Display temp from Tuesday to Friday.
5. Display square of all temperature.:

Solution:

Output:
Practical 10:
Create a Series object 'employee' that stores salary of 7 employees.
Write script to
print
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:

Solution:

Output:
Python DataFrame programs

Practical 11:
Create a DataFrame “sport” containing sport wise
marks for 5 students

Solution:

Output:
Practical 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
label

Solution:

Output:
Practical 13:
Consider two series object staff and salaries that stores the
number of people in various office branches and salaries
distributed in these branches 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.

Solution:

Output:
Practical 14:
Create a dataframe “aid” as given below and write
program to do the following :

Solution:
Output:
Practical 15:
For a given dataframe aid. Write a program to write
the values to “aid” to a comma separated file
‘aidfigures.csv’ on the disk. Do not write the row
label and columns label.

Solution:

Output:
Python matplotlib pyplot programs

Solution:
Output:
Solution:
Output:
Solution:

Output:
Database query using SQL practicals:

practical 1: create a student table with student id,


name and marks as attributes where student id is
the primary key

solution:

Practical 2: In the table student created in practical


1 insert the details of new students

Solution:
Practical 3: write SQL command to get the details of
the students with marks more than 80

Solution:

Practical 4 : write the SQL command to find the


min ,max, sum and average of marks in a student
marks table

Solution:
Practical 5:
find the total number of customers from each
country in a table (customer id, customer name,
country) using group by

Solution:

Practical 6:
Delete the details of a student table created in
practical 4

Solution:
Practical 7:
Write a SQL query to order the (student id , marks)
In descending order of the marks

Solution:

Practical 8:
For the given table hospital write SQL command to
display name of all patients admitted in the month
of may
Solution:

Practical 9:
For the given table hospital write SQL query to
display patient name in upper case with year of
admission

Solution:
Practical 10:
For the given table hospital, write SQL query to
display first four letters of patient name along with
length of their name who admitted before may

Solution:

You might also like