Data Handling With Pandas

Assess your knowledge of DataFrames,Series,and data cleaning.

1. Which Pandas object is a 2-dimensional labeled data structure with rows and columns?
2. Which methods are used to handle missing values by removing or replacing them?
3. The default axis for the `df.drop()` method is axis=0 (rows).
4. What is the Pandas function used to read a CSV file into a DataFrame? (enter the function name)
5. Which method returns the first 5 rows of a DataFrame by default?
6. Which of the following are valid ways to select a single column as a Series from DataFrame `df`?
7. A Pandas Series can contain elements of multiple data types.
8. What does the `df.shape` attribute return?
9. What is the term for the unique row labels in a DataFrame? (single word)
10. Which aggregation functions can be used with `df.groupby('category')`?
11. The `df.fillna(0)` method modifies the original DataFrame by default.
12. Which function is used to check for missing values in a DataFrame?
13. What is the method used to combine two DataFrames vertically (stack rows) in Pandas? (function name)
14. Which operations can be performed using `df.loc[]`?
15. The `df.describe()` method provides summary statistics (count, mean, std, etc.) for numerical columns only.
16. What does `df.groupby('category')['value'].mean()` compute?
17. Which of the following are valid ways to create a Pandas Series?
18. The `inplace=True` parameter in `df.drop(columns=['col'], inplace=True)` modifies the original DataFrame.
19. Which method is used to rename columns in a DataFrame?
20. What is the result of `df['column'].unique()`?
Answered 0 of 0 — 0 correct