🧪 Panda MCQ Quiz Hub

Pandas MCQ

Choose a topic to test your knowledge and improve your Panda skills

1. Which of the following are modules/libraries in Python?




2. Important data structure of pandas is/are ____




3. Which of the following library in Python is used for plotting graphs and visualization.




4. _____ is used when data is in Tabular Format.




5. Which of the following command is used to install pandas?




6. Which of the following statement is wrong?




7. The data label associated with a particular value of Series is called its ______________




8. Write the output of the following : >>> import pandas as pd >>> series1 = pd.Series([10,20,30]) >>> print(series1)




9. How many values will be there in array1, if given code is not returning any error? >>> series4 = pd.Series(array1, index = [“Jan”, “Feb”, “Mar”, “Apr”])




10. When we create a series from dictionary then the keys of dictionary become ______________




11. Write the output of the following : >>> S1=pd.Series(14, index = ['a', 'b', 'c']) >>> print(S1)




12. Which of the following statement is correct for importing pandas in python?




13. Python libraries contain a collection of built-in ___________




14. columns b. index c. dtypes d. values




15. Which of the following is used to display first 2 rows of DataFrame ‘DF’?




16. Following statement will display ___________ rows from DataFrame ‘DF1’. >>> DF1.head()




17. Which property of dataframe is used to check that dataframe is empty or not?




18. Write the output of the statement >>>df.size , if df has the following structure: Name Class Rollno 0 Amit 6 1 1 Anil 7 2 2 Ravi 8 3




19. Parameters of read_csv( ) function is _____




20. Which of the following function is used to load the data from the CSV file into a DataFrame?




21. The default value for sep parameter is ___




22. Write statement to display the row labels of ‘DF’.




23. Display first row of dataframe ‘DF’




24. Display last two rows from dataframe ‘DF




25. Write statement to transpose dataframe DF.




26. Write statement to display first two columns of dataframe ‘DF’.




27. Display last two rows from dataframe ‘DF’




28. Write statement to display the data types of each column of dataframe ‘DF’




29. Write statement to display the dimension of dataframe ‘DF’.




30. Write statement to display the shape of dataframe ‘DF’.