Assignment Pandas (intro to programming):
➔ You will find Online Shopping Dataset on the drive use it to solve the
assignment.
Task 1:
1. Load a CSV file named "data.csv" into a Pandas DataFrame.
2. Display the first 5 rows of the DataFrame.
3. Display the column names and data types in the DataFrame.
4. Show the summary statistics (mean, median, min, max, etc.) for
numerical columns.
Task 2:
1. Add a new column 'Total' that contains the sum of two existing
numerical columns.
2. Filter the DataFrame to show rows where a specific column value
meets a certain condition (e.g., where Avg_Price > 120).
3. Sort the DataFrame based on a particular column in ascending order.
Task 3:
1. Calculate the average value of a specific column.
2. Find the most frequent value in a categorical column.
3. Group the data by a categorical column and calculate the mean for
each group.
Task 4:
1. Create a histogram to visualize the distribution of a numerical column.
2. Generate a bar chart to represent the frequency of categories in a
categorical column.
Task 5:
1. Perform data imputation to handle missing values in the DataFrame.
Artificial Intelligence