0% found this document useful (0 votes)
5 views11 pages

My Document

The document provides instructions on creating data frames and visualizing data using Matplotlib. It includes examples of creating a student table with attributes such as student ID, name, and marks, as well as generating summary statistics. Additionally, it describes how to create a new table by joining two tables based on order details.

Uploaded by

lalitlalit98697
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)
5 views11 pages

My Document

The document provides instructions on creating data frames and visualizing data using Matplotlib. It includes examples of creating a student table with attributes such as student ID, name, and marks, as well as generating summary statistics. Additionally, it describes how to create a new table by joining two tables based on order details.

Uploaded by

lalitlalit98697
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/ 11

#8 For the

#1 For the Data


Data frames
frames created
createdabove,
above,analyze,
analyze,and
andplot
plotappropriate
appropriatecharts
charts

with title..
with title

Output;
#9 Take
#2 Take data
data of
of your
your interest
interestfrom
froman
anopen
opensource
source(e.g.
(e.g.data.gov.in),
data.gov.in),

aggregate and
aggregate and summarize
summarize it.
it. Then
Thenplot
plotititusing
usingdifferent
differentplotting
plotting

functions of
functions of the
the Matplotlib
Matplotlib library.
library.
#10Create
#1 Createa astudent
studenttable
tablewith
with the
the student
student id,id, name,
name, andand marks
marks as as

attributes where
attributes where the
the student
student id
idisisthe
theprimary
primarykey.
key.

+------------+----------+-------+
| Student_ID | Name | Marks |
+------------+----------+-------+
| | | |
+------------+----------+-------+

+------------+--------------+-------+
| Student_ID | Name | Marks |
+------------+--------------+-------+
| 1 | John Doe | 85.50 |
| 2 | Jane Doe | 90.25 |
| 3 | Alice Smith | 78.00 |
| 4 | Bob Johnson | 92.00 |
| 5 | Eve Williams | 88.00 |
+------------+--------------+-------+
+------------+--------------+-------+
| Student_ID | Name | Marks |
+------------+--------------+-------+
| 1 | John Doe | 85.50 |
| 2 | Jane Doe | 90.25 |
| 4 | Bob Johnson | 92.00 |
| 5 | Eve Williams | 88.00 |
+------------+--------------+-------+

+-----------+-----------+-----------+--------------+
| Min_Marks | Max_Marks | Sum_Marks | Average_Marks|
+-----------+-----------+-----------+--------------+
| 78.00 | 92.00 | 434.75 | 86.95 |
+-----------+-----------+-----------+--------------+

+------------+---------------+-------+
| Student_ID | Name | Marks |
+------------+---------------+-------+
| 4 | Bob Johnson | 92.00 |
| 2 | Jane Doe | 90.25 |
| 5 | Eve Williams | 88.00 |
| 1 | John Doe | 85.50 |
| 3 | Alice Smith | 78.00 |
+------------+---------------+-------+
#11 Create
#2 Ceate a new
a new table
table (order
(order ID,ID, customer
customer Name,
Name, andand order
order Date)
Date) by by

joining two tables


joining two tables (order
(order ID,
ID,customer
customerID,
ID,and
andorder
orderDate).
Date).
Output:

| Order_ID | Customer_Name | Order_Date |


|----------|----------------|------------|
| 1 | John Doe | 2022-01-01 |
| 2 | Jane Doe | 2022-01-15 |
| 3 | John Doe | 2022-02-01 |
| 4 | Bob Johnson | 2022-03-01 |
| 5 | Jane Doe | 2022-04-01 |

You might also like