
Week 5: Pandas Fundamentals I โ 32 Problem Statements
1. Read a CSV file into a DataFrame and print its first 5 rows.
2. Use info() to check data types and non-null values.
3. Display basic statistics of numerical columns using describe().
4. Select a specific column and calculate its mean.
5. Select multiple columns from a DataFrame.
6. Use .iloc to access the first three rows and two columns.
7. Use .loc to access rows with specific labels.
8. Add a new column to a DataFrame based on existing columns.
9. Rename columns in a DataFrame.
10. Replace missing values with column mean.
11. Drop rows with missing values and compare the shapes.
12. Sort the DataFrame by a specific column.
13. Filter rows based on a numerical condition.
14. Filter rows based on multiple conditions.
15. Reset the index of a DataFrame.
16. Set a specific column as the new index.
17. Count the frequency of unique values in a categorical column.
18. Group data by a column and find the average of each group.
19. Create a new column using apply() with a custom function.
20. Write a filtered DataFrame to a new CSV file.
21. Use value_counts() to find how often each category appears.
22. Access the last 10 rows of a DataFrame using .tail().
23. Rename specific row indices.
24. Create a copy of a DataFrame and modify it.
25. Replace a value in the entire DataFrame.
26. Check for duplicate rows and remove them.
27. Concatenate two DataFrames vertically.