IP Practical File
IP Practical File
Output:
Output:
category, item name, and expenditure. Group the rows by the category
Output:
Original DataFrame:
Category Item Name Expenditure
0 Electronics Laptop 1000
1 Fashion Shirt 50
2 Electronics Tablet 500
3 Fashion Shoes 100
4 Home Goods Chair 200
Output:
Row Labels:
RangeIndex(start=0, stop=5, step=1)
Column Labels:
Index(['Student ID', 'Name', 'Maths', 'Science', 'English'], dtype='object')
Data Types:
Student ID int64
Name object
Maths int64
Science int64
English int64
dtype: object
Dimensions:
(5, 5)
#5 Filter out rows based on different criteria such as duplicate rows.
Output:
Name Age
0 John 25
1 Mary 31
3 Emily 42
4 Michael 35
Name Age
0 John 25.0
1 Mary 31.0
4 Michael 35.0
Name Age
1 Mary 31
2 Emily 42
3 Michael 35
#6 Importing and exporting data between pandas and CSV file.
Output:
Name Age
0 John 25
1 Mary 31
#7 Given the school result data, analyses the performance of the students
on different.
Output:
dtype: float64
Class-wise Average Marks:
Class Maths Science English
X 84.0 85.0 87.0
XI 85.0 83.0 88.0
Top 3 Students with Highest Total Marks:
Name Total
1 Mary 265
9 Olivia 260
5 Sarah 260
#8 For the Data frames created above, analyze, and plot appropriate charts
with title.
Output;
#9 Take data of your interest from an open source (e.g. data.gov.in),
+------------+----------+-------+
| 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 a new table (order ID, customer Name, and order Date) by
joining two tables (order ID, customer ID, and order Date).
Output: