πŸ§ͺ Panda MCQ Quiz Hub

Pandas MCQ

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

Which of the following are modules/libraries in Python?





βœ… Correct Answer: 4

Important data structure of pandas is/are ____





βœ… Correct Answer: 3

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





βœ… Correct Answer: 3

_____ is used when data is in Tabular Format.





βœ… Correct Answer: 2

Which of the following command is used to install pandas?





βœ… Correct Answer: 1

Which of the following statement is wrong?





βœ… Correct Answer: 4

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





βœ… Correct Answer: 2

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 4

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 4

Python libraries contain a collection of built-in ___________





βœ… Correct Answer: 2

columns b. index c. dtypes d. values





βœ… Correct Answer: 3

Which of the following is used to display first 2 rows of DataFrame β€˜DF’?





βœ… Correct Answer: 3

Following statement will display ___________ rows from DataFrame β€˜DF1’. >>> DF1.head()





βœ… Correct Answer: 4

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





βœ… Correct Answer: 3

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





βœ… Correct Answer: 1

Parameters of read_csv( ) function is _____





βœ… Correct Answer: 3

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





βœ… Correct Answer: 3

The default value for sep parameter is ___





βœ… Correct Answer: 3

Write statement to display the row labels of β€˜DF’.





βœ… Correct Answer: 3

Display first row of dataframe β€˜DF’





βœ… Correct Answer: 4

Display last two rows from dataframe β€˜DF





βœ… Correct Answer: 4

Write statement to transpose dataframe DF.





βœ… Correct Answer: 1

Write statement to display first two columns of dataframe β€˜DF’.





βœ… Correct Answer: 1

Display last two rows from dataframe β€˜DF’





βœ… Correct Answer: 3

Write statement to display the data types of each column of dataframe β€˜DF’





βœ… Correct Answer: 2

Write statement to display the dimension of dataframe β€˜DF’.





βœ… Correct Answer: 2

Write statement to display the shape of dataframe β€˜DF’.





βœ… Correct Answer: 2