Python MCQ Quiz Hub

Pandas MCQ Questions Set 1

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

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




2. NumPy stands for ____




3. Which of the following libraries allows to manipulate, transform and visualize data easily and efficiently.




4. PANDAS stands for _____________




5. ____ is an important library used for analyzing data.




6. Important data structure of pandas is/are _




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




8. Pandas Series can have _________________ data types




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




10. A __________ is a collection of data values and operations that can be applied to that data.




11. A _______________ is a one-dimensional array.




12. Which of the following statement is wrong?




13. A Series by default have numeric data labels starting from ______________.




14. The data label associated with a particular value of Series is called its ______




15. Which of the following module is to be imported to create Series?




16. Which of the following function/method help to create Series?




17. When you print/display any series then the left most column is showing _________ value.




18. 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”])




19. Which of the following statement will create an empty series named “S1”?




20. How many elements will be there in the series named “S1”? >>> S1 = pd.Series(range(5)) >>> print(S1)




21. When we create a series from dictionary then the keys of dictionary become ____




22. When we create a series from dictionary then the keys of dictionary become ____




23. When we create a series from dictionary then the keys of dictionary become ____




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




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




26. What type of error is returned by following code? import pandas as pd S1 = pd.Series(data = (31, 2, -6), index = [7, 9, 3, 2]) print(S1)




27. We can imagine a Pandas Series as a ______________ in a spreadsheet




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




29. What type of error is returned by following statement? import pandas as pnd pnd.Series([1,2,3,4], index = [‘a’,’b’,’c’])




30. Which attribute is used to give user defined labels in Series




31. Fill in the blank to get the ouput as 3 import pandas as pnd S1=pnd.Series([1,2,3,4], index = ['a','b','c','d']) print(S1[___________])