0% found this document useful (0 votes)
18 views27 pages

Presentation 1

This document appears to be a student submission for an Informatics Practices class. It was submitted by Surya Pratap Singh of Class 12B to Mrs. Priti Rani. The document contains 12 sections on data handling with Pandas and data visualization in Python. It also contains 15 questions on data management using SQL. For each question, the student has provided the code or SQL query followed by the output.

Uploaded by

Satyam Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views27 pages

Presentation 1

This document appears to be a student submission for an Informatics Practices class. It was submitted by Surya Pratap Singh of Class 12B to Mrs. Priti Rani. The document contains 12 sections on data handling with Pandas and data visualization in Python. It also contains 15 questions on data management using SQL. For each question, the student has provided the code or SQL query followed by the output.

Uploaded by

Satyam Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 27

ADARSH PUBLIC SR. SEC.

SCHOOL

INFORMATICS PRACTICES

SUMBITTED TO SUMBITTED BY :
MRS PRITI RANI SURYA PRATAP
SINGH
12.B

SURYA PRATAP SINGH 1


SURYA PRATAP SINGH 2
SURYA PRATAP SINGH 3
DATA
HANDLING
(PANDAS)

SURYA PRATAP SINGH 4


1) CREATION OF SERIES :-

SURYA PRATAP SINGH 5


OUTPUT :-

SURYA PRATAP SINGH 6


2) CREATION OF DATAFRAME :-

SURYA PRATAP SINGH 7


OUTPUT :-

3) GIVEN A SERIES, PRINT ALL THE ELEMENTS THAT ARE ABOVE


THE 75 PERCENTILE

OUTPUT :-

SURYA PRATAP SINGH 8


4) CREATE A DF QUARTERLY SALES WHERE EACH ROW CONTAIN ITEM CATEGORY,
ITEMNAME & EXPENDITURE. GROUP THE ROWS BY THE CATEGORY & PRINT THE
TOTAL EXPENDITURE PER CATEGORY :-

OUTPUT :-

5) CREATE A DF BASED ON E-COMMERCE DATA & GENERATE DESCRIPTIVE


STATISTICS(MEAN, MODE, MEDIAN, QUARTILE, & VARIANCE) :-

OUTPUT :-

6) CREATE A DF FOR EXAM RESULT & DISPLAY ROW LABELS, COLUMN LABELS, DATATYPES
OF EACH COLUMN & THE DIMENSIONS :-

OUTPUT :-

SURYA PRATAP SINGH 9


7) FILTER OUT ROWS BASED ON DIFFERENT CRITERIA SUCH AS DUPLICATE
ROWS :-

OUTPUT :-

8) FIND THE SUM OF EACH COLUMN OR FIND COLUMN WITH THE LOWEST MEAN :-

OUTPUT :-

9) LOCATE 3 LARGEST VALUES IN DF :-

OUTPUT :-

SURYA PRATAP SINGH 10


10) SUBTRACT THE MEAN OF A ROW FROM EACH ELEMENT
OF ROW IN A DF :-

OUTPUT :-

11) REPLACE ALL NEGATIVE VALUES IN A DF WITH 0 :-

OUTPUT :-

SURYA PRATAP SINGH 11


12) REPLACE ALL MISSING VALUES IN DF WITH 999 :-

OUTPUT :-

SURYA PRATAP SINGH 12


DATA
VISUALISATIO
N

SURYA PRATAP SINGH 13


##1 Given the school result data , analyse the performance of
the students parameters, ex, subject-wise or class-wise:

OUTPUT:

SURYA PRATAP SINGH 14


##2. For the DataFrames Created above , analyze & plot
appropriate charts with title and legend:

OUTPUT:

SURYA PRATAP SINGH 15


## 3. Plot a histogram of name , height , weight of 4 students :

OUTPUT:

SURYA PRATAP SINGH 16


## 4. Plot a Bar Chart to depict the popularity of
various programming languages:

OUTPUT:

SURYA PRATAP SINGH 17


## 5. Write a pyhton program to plot two & more lines
with legends,different widths & colours:

OUTPUT:

SURYA PRATAP SINGH 18


DATA
MANAGEMENT

SURYA PRATAP SINGH 19


1) Create a Student Table with The Student ID , Name & Marks as
Attributes Where the Student ID is the Primary Key.

2) Insert The Details of a New Student in the Above Table.

SURYA PRATAP SINGH 20


3) Delete the Details of a New Student in the Above Table.

4) Use the Select Command to get the Details of the Students with
Marks more than 80.

5) Find the Min, Max, Sum & Average of the Marks in a Student
Marks Table.

SURYA PRATAP SINGH 21


6) Find the total number of customera from Each Country in the Table
(Customer ID , Customer Name , Country) Using Group By.

SURYA PRATAP SINGH 22


7) Write a SQL Query to order the (Student ID, Marks) Table in
Descending Order Of the Marks.

8) Create a New Table (Order I'd, Customer Name & Order Date) By
Joining Two Tables (Order-ID, Customer-ID & Order Date) &
(Customer ID, Customer Name)

SURYA PRATAP SINGH 23


SURYA PRATAP SINGH 24
9) Create a Foreign Key in One of the Two Tables Mentioned Above.

10) Create a New Table (Name, Date Of Birth) by Joining Two Tables
(Student-ID, Name) & (Student-ID, Date of Birth)

SURYA PRATAP SINGH 25


11) Find Year, Month, Date from the Given Date(2022-09-25).

12) Find SysDate, Curdate & Now.

SURYA PRATAP SINGH 26


13) Find Reverse of a String.

14) Find Repeat & Trim using SQL Queries.

15) Find Concat of a String.

SURYA PRATAP SINGH 27

You might also like