Aptitude Reasoning English GK Computer Knowledge Programming Skill Banking Software Testing



Question - 1

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

  • Matplotlib
  • NumPy
  • Pandas
  • All the above
Solutions
Question - 2

Which of the following are modules/libraries in Python?

  • Numpy
  • Pandas
  • Matplotlib
  • All of the above
Solutions
Question - 3

__________ is an important library used for analyzing data.

  • Math
  • Random
  • Pandas
  • None of the above
Solutions
Question - 4

Important data structure of pandas is/are ___________

  • Series
  • Dataframe
  • Both A and B
  • None of the above
Solutions
Question - 5

Which of the following command is used to import pandas?

  • import pandas as pd
  • import pandas
  • from pandas import *
  • All of the above
Solutions
Question - 6

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

  • Cell
  • Table
  • Column
  • None of the above
Solutions
Question - 7

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

  • SyntaxError
  • IndexError
  • ValueError
  • None of these
Solutions
Question - 8

Which attribute is used to give user-defined labels in Series?

  • values
  • data
  • index
  • None of these
Solutions
Question - 9

Write the statement to get NewDelhi as output using a positional index.
import pandas as pd
S1 = pd.Series([‘NewDelhi’, ‘WashingtonDC’, ‘London’, ‘Paris’],
index=[‘India’, ‘USA’, ‘UK’, ‘France’])

  • print(S1[0])
  • print(S1[‘India’])
  • print(S1.India)
  • Both a and b
Solutions
Question - 10

We can access elements in Series by using ________ index and ____________index.

  • Numeric, labelled
  • Positional, Naming
  • Positional, labelled
  • All of the above
Solutions
Question - 11

Which of the following property/attribute assigns a name to the Series?

  • name
  • index.name
  • size
  • series.name
Solutions
Question - 12

S1.values will return all the values of Series ‘S1’ in _________

  • Tuple
  • Dictionary
  • List
  • String
Solutions
Question - 13

Which of the following statement shows the first five values of Series ‘S1’?

  • S1.head( )
  • S1.head( 5 )
  • Both of the above
  • None of these
Solutions
Question - 14

Write the output of the following :
import pandas as pd
S1=pd.Series([1,2,3,4])
S2=pd.Series([7,8])
print((S1+S2).count())

  • 6
  • 4
  • 3
  • 2
Solutions
Question - 15

Which of the following returns number of non-NaN values of Series?

  • count
  • size
  • index
  • values
Solutions
Question - 16

Write the output of the following :
import pandas as pd
S1=pd.Series([1,2,3,4])
S2=pd.Series([7,8,9,10])
S2.index=[‘a’,’b’,’c’,’d’]
print((S1+S2).count())

  • 8
  • 4
  • 0
  • 6
Solutions
Question - 17

Which of the following fills the missing values in Series?

  • fill value
  • fill-value
  • fill_value
  • fill_value( )
Solutions
Question - 18

 Mathematical Operations on two Series object is done by matching ____________.

  • indexes
  • values
  • set
  • All of the above
Solutions
Question - 19

Which of the following statement will display values more than 40 from Series ‘S1’?

  • >>>S1
  • >>> S1 > 40
  • >>>S1[S1 > 40]
  • None of the above
Solutions
Question - 20

When an operation is carried out on every value of Series object is called _____.

  • Scalar Operation
  • Vector Operation
  • Both of the above
  • None of these
Solutions
Tags:
Python panda MCQ (Multiple Choice Questions), Advanced Python panda MCQ, Python panda MCQ Online test,Python panda MCQ Questions and answers PDF, Python panda Interview Questions With Answers, Python panda Technical Questions with full explanation