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

Informatics practices file format code-065

This document is a practical file for the Informatics Practices course at Springfield Public School for the session 2024-25, submitted by Aniket Kushwaha. It includes acknowledgments and a detailed index of practical tasks related to Python Pandas and SQL commands, such as data handling, creating data frames, and executing SQL queries. The file serves as a comprehensive guide for students to complete their practical assignments under the guidance of Mrs. Pooja Malik.

Uploaded by

kushwahaxaniket
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Informatics practices file format code-065

This document is a practical file for the Informatics Practices course at Springfield Public School for the session 2024-25, submitted by Aniket Kushwaha. It includes acknowledgments and a detailed index of practical tasks related to Python Pandas and SQL commands, such as data handling, creating data frames, and executing SQL queries. The file serves as a comprehensive guide for students to complete their practical assignments under the guidance of Mrs. Pooja Malik.

Uploaded by

kushwahaxaniket
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

SPRINGFIELDS PUBLIC

SCHOOL

SESSION : 2024 – 25

INFORMATICS PRACTICES
PRACTICAL FILE

UNDER THE GUIDANCE OF: Mrs. POOJA MALIK (IT INCHARGE)

SUBMITTED BY: ANIKET KUSHWAHA


CLASS: XII – YELLOW
ROLL NO.:

1
Acknowledgement

It is a great pleasure for me to submit the proceedings of report of Informatics Practices practical
file. The success and outcome of this practical file required a lot of guidance and assistance from
many people.
I express my sincere thanks to our lecturer Mrs. Pooja Malik for her invaluable and timely guidance.
Then I thank my family members, especially my parents for their support. I also acknowledge our
director principal Mrs. Veena Chopra. At last, I bow my head in the feet of the almighty who helped
me at every state of my life.
Aniket Kushwaha
XII-Yellow

2
PYTHON PANDAS
INDEX

1. Creating a series from two different lists


2. Creating a panda series from dictionary of values
3. Given a series, print all the elements that are above the 75th percentile
4. Create a data frame of quarterly sales where each row contains the item category, item
name and expenditure. Group the rows by the category and print the total expenditure per
category
5. Create a data frame for examination result and display row labels, column labels data types
of each column and dimension
6. Locate the 3 largest values in a data frame
7. Write a Python program to convert a dictionary into data frame
8. Write a Python program to concatenate two data frames along columns
9. Importing and exporting data between Pandas and CSV file
10. To display name, age and salary from CSV file
11. Given the school result data, analyse the performance of students on different parameters
e.g. Subject wise or class wise
12. For the data frame created above, analyse and plot appropriate charge the title and legend
13. Creating a program to plot a MULTI-LINE chart
14. To display a histogram with well-defined edges

3
DATA HANDLING

1. CREATING A SERIES FROM TWO DIFFERENT LISTS

4
DATA HANDLING

1. CREATING A SERIES FROM TWO DIFFERENT LISTS

5
2. CREATING A SERIES FROM DICTIONARY

6
3. GIVEN A SERIESPRINT ALL THE ELEMENTS THAT ARE ABOVE 75TH PERCENTILE

7
4. CREATING A DATA FRAME ‘QUARTERLY SALE’. EACH ROW CONTAINS THE ITEM
CATEGORY, ITEM NAME AND EXPENDITURE. GROUP THE ROWS BY CATEGORY
AND PRINT TOTAL EXPENDITURE FOR CATEGORY

8
5. CREATE A DATA FRAME FOR EXAMINATION RESULT AND DISPLAY ROW LABELS,
COLUMN LABELS DATA TYPES OF EACH COLUMN AND DIMENSIONS.

9
6. LOCATE THE 3 LARGEST VALUES IN A DATA FRAME.

10
7. WRITE A PYTHON PROGRAM TO CONVERT A DICTIONARY INTO DATA FRAME.

11
8. WRITE A PYTHON PROGRAM TO CONCATENATE TWO DATA FRAMES ALONG
COLUMNS

12
9. IMPORTING AND EXPORTING DATA BETWEEN PANDAS AND CSV FILE.

13
10. TO DISPLAY NAME, AGE AND SALARY FROM Book1.csv

14
11. GIVEN THE SCHOOL RESULT DATA, ANALYSE THE PERFORMANCE OF STUDENTS
ON DIFFERENT PARAMETERS E.G. SUBJECT WISE OR CLASS WISE

15
12. FOR THE DATA FRAME CREATED ABOVE, ANALYSE AND PLOT APPROPRIATE
CHARGE THE TITLE AND LEGEND

16
13. WRITE A PROGRAM TO PLOT A MULTI-LINE CHART

17
14. TO DISPLAY A HISTOGRAM WITH WELL-DEFINED EDGES

18
SQL COMMANDS
INDEX

1. Create a student table with student ID, name and marks as attributes where the student ID is
primary key
2. Insert the details of students in above table
3. Delete the details of student in above table
4. Use the select command to get the details of students with marks more than 80
5. Find the minimum common maximum, sum, average of marks in students marks table
6. Write an SQL query to order the (student ID, marks table in descending order of marks
7. Write a SQL query to display name into capital letters commerce small letters, display first 3 letters
of name, display last 3 letters of name, display the position of letter ‘a’ in name
8. Remove extra spaces from left, right and both sides of the text
9. Display today’s date in ‘Date Month Year’ format
10. Display day name, month name, day of month, day of year for today’s date

19
1. CREATE A STUDENT TABLE WITH STUDENT ID, NAME AND MARKS AS ATTRIBUTES WHERE
THE STUDENT ID IS PRIMARY KEY

2. INSERT THE DETAILS OF STUDENTS IN ABOVE TABLE

3. DELETE THE DETAILS OF STUDENT IN ABOVE TABLE


20
4. USE THE SELECT COMMAND TO GET THE DETAILS OF STUDENTS WITH MARKS MORE
THAN 80

21
5. FIND THE MINIMUM COMMON MAXIMUM, SUM, AVERAGE OF MARKS IN STUDENTS MARKS
TABLE

6. WRITE AN SQL QUERY TO ORDER THE (STUDENT ID, MARKS TABLE IN DESCENDING
ORDER OF MARKS

22
7. WRITE A SQL QUERY TO DISPLAY NAME INTO CAPITAL LETTERS COMMERCE SMALL
LETTERS, DISPLAY FIRST 3 LETTERS OF NAME, DISPLAY LAST 3 LETTERS OF NAME,
DISPLAY THE POSITION OF LETTER ‘A’ IN NAME

8. REMOVE EXTRA SPACES FROM LEFT, RIGHT AND BOTH SIDES OF THE TEXT

23
9. DISPLAY TODAY’S DATE IN ‘DATE MONTH YEAR’ FORMAT

10. DISPLAY DAY NAME, MONTH NAME, DAY OF MONTH, DAY OF YEAR FOR TODAY’S DATE

24

You might also like