Pandas MCQ Test: Pandas MCQs - Practice Questions
1. Which Pandas function is used to merge two DataFrames based on a common column?
2. What is the purpose of the Pandas function 'df.mean()'?
3. In Pandas, how do you efficiently calculate a rolling window average for a specific column?
4. In Pandas, what does the `isin()` method do?
5. What does the Pandas function 'df.info()' provide?
6. How can you convert a Pandas DataFrame to a NumPy array?
7. What is the purpose of the Pandas function 'df.iloc[]'?
8. What is the purpose of the `pivot_table()` function in Pandas?
9. How can you efficiently handle missing values in a Pandas DataFrame considering both forward and backward filling?
10. What does the `diff()` function in Pandas allow you to calculate?
11. In Pandas, what is the purpose of the `nunique()` function?
12. How can you calculate the median of a specific column 'column_name' in a Pandas DataFrame 'df'?
13. Which Pandas function is used to perform element-wise mathematical operations on two DataFrames?
14. Which method is used to fill missing values in a Pandas DataFrame?
15. What is the purpose of the `resample()` method in Pandas?
16. In Pandas, what does the `explode()` function do?
17. What is the purpose of the `ffill()` and `bfill()` functions in Pandas?
18. How do you efficiently apply a function to elements in a specific column of a Pandas DataFrame?
19. Which Pandas method is used to calculate the correlation between columns in a DataFrame?
20. How can you efficiently calculate the percentage change in a Pandas DataFrame for multiple columns?