0% found this document useful (0 votes)
724 views22 pages

Class 12 Practical File Informatics Practices - Unlocked

The document provides tutorials on various pandas topics including: - Creating series and data frames from dictionaries and arrays - Descriptive statistics and filtering of data frames - Importing/exporting data from pandas to CSV/SQL databases - Data analysis and visualization using pandas and Matplotlib - Basic SQL commands for creating, manipulating and querying database tables

Uploaded by

Pankaj Arora
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)
724 views22 pages

Class 12 Practical File Informatics Practices - Unlocked

The document provides tutorials on various pandas topics including: - Creating series and data frames from dictionaries and arrays - Descriptive statistics and filtering of data frames - Importing/exporting data from pandas to CSV/SQL databases - Data analysis and visualization using pandas and Matplotlib - Basic SQL commands for creating, manipulating and querying database tables

Uploaded by

Pankaj Arora
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/ 22

www.python4csip.

com

Create a pandas series from a dictionary of values and an ndarra

1|Page
www.python4csip.com

Given a Series, print all the elements that are above the 75th percentile.

2|Page
www.python4csip.com

Create a Data Frame quarterly sales where each row contains the item
category, item name, and expenditure. Group the rows by the category, and

3|Page
www.python4csip.com

Create a data frame based on ecommerce data and generate descriptive


statistics (mean, median, mode, quartile, and variance).

4|Page
www.python4csip.com

Create a data frame for examination result and display row labels, column
labels data types of each column and the dimensions

5|Page
www.python4csip.com

Filter out rows based on different criteria such as duplicate rows.

6|Page
www.python4csip.com

Find the sum of each column, or find the column with the lowest mean.

7|Page
www.python4csip.com

Locate the 3 largest values in a data frame.

8|Page
www.python4csip.com

Subtract the mean of a row from each element of the row in a Data Frame.

9|Page
www.python4csip.com

Replace all negative values in a data frame with a 0.

10 | P a g e
www.python4csip.com

Replace all missing values in a data frame with a 999.

11 | P a g e
www.python4csip.com

Importing and exporting data between pandas and CSV file

12 | P a g e
www.python4csip.com

Importing and exporting data between pandas and MySQL database.

Importing Data from MySQL to Data Frame.

13 | P a g e
www.python4csip.com

Exporting data from Data Frame to MYSQL.

14 | P a g e
www.python4csip.com

Given the school result data, analyse the performance of the students on
different parameters, e.g subject wise or class wise.

15 | P a g e
www.python4csip.com

For the Data frames created above, analyze and plot appropriate charts with
title and legend.

16 | P a g e
www.python4csip.com

Take data of your interest from an open source (e.g. data.gov.in), aggregate and
summarize it. Then plot it using different plotting functions of the Matplotlib
library.

17 | P a g e
www.python4csip.com

18 | P a g e
www.python4csip.com

Create a student table with the student id, name, and marks as attributes
where the student id is the primary key.

Insert the details of a new student in the above table.

Delete the details of a particular student in the above table.

19 | P a g e
www.python4csip.com

Use the select command to get the details of the students with marks
more than 80.

Create a new table (order ID, customer Name, and order Date) by joining two
tables (order ID, customer ID, and order Date) and (customer ID, customer

20 | P a g e
www.python4csip.com

Create a foreign key in one of the two tables mentioned above

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

Find the total number of customers from each country in the table
(customer ID, customer Name, country) using group by.

21 | P a g e
www.python4csip.com

Create a new table (name, date of birth) by joining two tables (student id,
name) and (student id, date of birth).

Write a SQL query to order the (student ID, marks) table in descending order of
the marks.

22 | P a g e

You might also like