Pandas Data Transformation

Quiz on filtering,grouping,merging,and reshaping data.

1. Which Pandas function is primarily used to merge two DataFrames based on common columns?
2. Select all functions used for reshaping DataFrames in Pandas.
3. The dropna() method removes rows containing missing values by default.
4. What is the Pandas function used to concatenate multiple DataFrames? (full name)
5. Which method is used to replace specific values in a DataFrame?
6. Which functions reshape a DataFrame from long format to wide format?
7. The applymap() method applies a function element-wise to a DataFrame.
8. What method is used to split a string column into multiple columns? (format: str.method)
9. What does df.groupby('category').transform('mean') return?
10. Which parameters are valid in the pd.merge() function?
11. pd.concat() concatenates DataFrames along rows (axis=0) by default.
12. Name the method used to fill missing values in a DataFrame with a specific value.
13. Which function stacks column headers into the index, creating a multi-index?
14. Select all functions that return a DataFrame when applied to a DataFrame.
15. The 'how' parameter in pd.merge() specifies the type of join (e.g., 'inner', 'outer').
Answered 0 of 0 — 0 correct