0% found this document useful (0 votes)
64 views36 pages

I.P Practical File Final

CLASS 12 CBSE IP PRACTICAL FILE

Uploaded by

nkmishra1029
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)
64 views36 pages

I.P Practical File Final

CLASS 12 CBSE IP PRACTICAL FILE

Uploaded by

nkmishra1029
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/ 36

Experiment No: Date:

CREATING A SERIES USING DICTIONARY.

Problem Definition:
To write a Python program to create a Series to store 5 students Percentage
Using dictionary and print all the elements that are above 75 percentage.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A SERIES USING SCALAR VALUE.

Problem Definition:
To write a Python program to create a Series object that stores the Initial
budget allocated (50000/- each) for the four quarters of the year: Qtr1, Qtr2,
Qtr3 and Qtr4.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A SERIES USING NUMPY ARRAY


Problem Definition:
To write a Python program to create a Series object that stores the Employee
names as index and their Salary as values.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM FOR MODIFYING OR UPDATING


EXISTING VALUES OF SERIES OBJECT.

Problem Definition:
To Write a Python program to create a Series object with Employee names as the
index and their salaries as values. Accept the name of the employee whose salary
needs to be changed, along with the new salary, and update it in the Series.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

PERFORMING MATHEMATICAL OPERATIONS ON SERIES OBJECTS.


Problem Definition:
To create a program in python to perform following mathematical Operations on
Two Series objects: (i) Addition (ii) Subtraction (iii) Multiplication (iv) Division.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM FOR CALCULATING PER CAPITA INCOME OF


FOUR ZONES USING SERIES.
Problem Definition:
To write a Python program to create two series i.e. population and average income of
Four Zones, and then calculate per capita income storing in third pandas series print it.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM TO DISPLAY ATTRIBUTES OF A SERIES.

Problem Definition:
To write a Python program to create a Series using list and display the following
attributes of the Series: (i) index (ii) dtype (iii) size (iv) shape (v) hasnans.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM USING head() AND tail() IN SERIES.

Problem Definition:
To write a Python program to create a Series using list of Marks of 10
students and display first 5 Students’ marks and Last 2 Students’ marks from
Series object.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM FOR CREATING A DATAFRAME USING A


NESTED LIST.

Problem Definition:
To write a Python program to create a panda’s Data Frame for the following table
Using Nested list:

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM FOR ACCESSING VALUES OF ROWS AND


COLUMNS OF A DATAFRAME.
Problem Definition:
To write a Python program to create a panda’s DataFrame called DF for the
following table Using Dictionary of List and perform the following operations:

i. To Display only column 'Toys' from DataFrame DF.


ii. To Display the row details of 'AP' and 'OD' from DataFrame DF.
iii. To Display the column 'Books' and 'Uniform' for 'M.P' and 'U.P' from DataFrame
DF.
iv. To Display consecutive 3 rows and 3 columns from DataFrame DF.
Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM FOR ACCESSING VALUES OF ROWS AND


COLUMNS OF A DATAFRAME.
Problem Definition:
To write a Python program to create a panda’s DataFrame called DF for the
following table Using Dictionary of List and perform the following operations:

i. Insert a new column “Bags” with values as [5891, 8628, 9785, 4475].
ii. Delete the row details of M.P from DataFrame DF.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM TO PERFORM OPERATIONS ON A


DATAFRAME ( RENAME, COUNT, UPDATE, REPLACE).
Problem Definition:
To write a Python program to create a pandas DataFrame to analyze number of
Government and Private medical college and their Total seats, Fees statewise
details using the dataset available at www.data.gov.in. Also, perform the
following operations:
i. To Change the name of the state AP to Andhra.
ii. To Count and Display Non-NaN values of each column.
iii. To Count and Display Non-NaN values of each row.
iv. To Increase the fees of all colleges by 5%.
v. To Replace all NaN values with 0.
Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM TO FILTER THE DATA OF A


DATAFRAME.
Problem Definition:
To write a Python program to create a panda’s DataFrame called DF for the
following table using Dictionary of List and display the details of students whose
Percentage is more than 85.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM TO DISPLAY THE ATTRIBUTES OF A


DATAFRAME.
Problem Definition:
To write a Python program to create a DataFrame using Dictionary of list and
display the following attributes of the DataFrame: (i) index (ii) columns (iii)
axes (iv) dtypes (v) shape (vi) dimension (vii) Transpose

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM TO DISPLAY THE DATA OF A DATAFRAME


ROW WISE AND COLUMNWISE USING ITERROWS() AND ITERITEMS().
Problem Definition:
To write a Python program to create a panda’s DataFrame called Students for the
following table and demonstrate iterrows and iteritems.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM TO PERFORM WRITING AND READING


OPERATIONS IN A CSV FILE.
Problem Definition:
To write a Python program to store the details of Employess’ such as Empno,
Name, Salary into a Employee.csv file. Also, write a code to read employee details
from csv file.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM FOR PLOTTING A LINE CHART


Problem Definition:
To write a Python program to plot a Line chart to depict the changing weekly
Onion and Brinjal prices for four weeks. Also, give appropriate axes labels, title
and keep marker style as Diamond and marker edge color as ‘red’ for Onion.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM FOR PLOTTING A BAR CHART FROM A


CSV FILE.
Problem Definition:
To write a Python program to create a DataFrame for subject-wise average, save it
to a CSV file, and then draw a bar chart using Matplotlib with a width of each bar
as 0.25, specifying different colours for each bar. Additionally, provide a proper
title and axes labels for the bar chart.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM FOR PLOTTING A MULTIPLE BAR


CHART FROM A CSV FILE.
Problem Definition:
To write a Python program to plot a multiple bar chart From CSV file using
Matplotlib for subject wise Scores of Class A, Class B, and Class C. Different
colours represent each class, and subjects include English, Accountancy,
Economics, BST and IP. Proper labels, a title and a legend are displayed on the
chart.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

CREATING A PYTHON PROGRAM FOR PLOTTING PLOTTING HISTOGRAM.


Problem Definition:
To write a Python program to plot a Histogram for the following class interval or
range. Also, give appropriate axes name, title and edge color as ‘red.

Coding:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

SQL COMMANDS EXERCISE - 1


Problem Definition:
To write Queries for the following Questions based on the given table:

~Write a Query to Create a new database in the name of "EMPS".

~Write a Query to Open the database EMPS.

~Write a Query to create the above table called: Info

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

~Write a Query to list all the existing database names.

~Write a Query to List all the tables that exists in the current database.

~Write a Query to insert all the rows of above table into Info table.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:
~Write a Query to display all the details of the Employees from the above table 'INFO'.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

SQL COMMANDS EXERCISE - 2


Problem Definition:

To write Queries for the following Questions based on the given table:

(a) Write a Query to Display Employees’ name and City from the above table.

(b) Write a Query to Display all details of Employees who are living in Chennai.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:
(c) Write a Query to get the name and salary of the employee whose salary is above
15000 and gender is not male.

(d) Write a query to update increase 10% Salary of an employee whose City is
'CHENNAI' and Gender is 'MALE'.

(e) Write a Query to delete the details of Employee Id 6.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

SQL COMMANDS EXERCISE - 3


Problem Definition:

To write Queries for the following Questions based on the given table:

Write a Query to list names of Employees in Descending order.

Write a Query to find a total salary of all employees.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:
Write a Query to display maximum salary and minimum salary of employees.

Write a Query to count the number of employees earning more than 25000.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:
Write a query to display sum of salary of the employees grouped by department wise.

Write a query to display the department names where number of employees are greater than
or equal to 2.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

SQL COMMANDS EXERCISE – 4


Problem Definition:

To write Queries for the following Questions based on the given table -"STU":

Write a Query to Display square of age that got admission in the month of August.

Write a Query to display Remainder of column Percentage divide by 3.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:
Write a Query to display Student names and their Percentage in round figure.

Display Name, Percentage and round up the remainder marks up to 2 decimal places.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

SQL COMMANDS EXERCISE – 5


Problem Definition:

To write Queries for the following Questions based on the given table -"STU":

Write a Query to display Department name in lower case letters.

Write a Query to display department name and its respective number of characters
in Dept column.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:
Write a Query to display first 2 characters of the column Name.

Write a Query to display first 2 characters of the column Name.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:
Write a query to display the names of all students and extract five characters from the third
position of the 'Name' field.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

SQL COMMANDS EXERCISE – 6


Problem Definition:

To write Queries for the following Questions based on the given table -"STU":

Write a Query to display student name and month of date of admission of all students.

Write a Query to display Student name and day name of the students’ DOA of the table STU.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:
Write a query to display the joining year of IP students.

Write a Query to Display the month for the date of birth of all students.

Write a query to display the names of the students who joined in the month of June.

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065


Experiment No: Date:

GRIN APPLE PUBLIC SCHOOL | INFORMATIC PRACTICES-065

You might also like