Aptitude Reasoning English GK Computer Knowledge Programming Skill Banking Software Testing



Question - 1

 S2 is ____________ in given code ?
S2 = S1[2 : 5] #S1 is a Series object

  • List
  • Tuple
  • Series
  • None of these
Solutions
Question - 2

Pandas is an open-source _______ Library?

  • Ruby
  • Javascript
  • Java
  • Python
Solutions
Question - 3

In pandas, Index values must be?

  • unique
  • hashable
  • Both A and B
  • None of these
Solutions
Question - 4

Which of the following are correct Features of DataFrame?

  • Potentially columns are of different types
  • Can Perform Arithmetic operations on rows and columns
  • Labeled axes (rows and columns)
  • All of the above
Solutions
Question - 5

 A panel is a ___ container of data.

  • 1D
  • 2D
  • 3D
  • Infinite
Solutions
Question - 6

Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame?

  • DataFrame.from_items
  • DataFrame.from_records
  • DataFrame.from_dict
  • All of the above
Solutions
Question - 7

Which of the following makes use of pandas and returns data in a series or data frame?

  • pandaSDMX
  • freedapi
  • OutPy
  • Inpy
Solutions
Question - 8

What will be output for the following code? import pandas as pd import numpy as np s = pd.Series(np.random.randn(4)) print s.ndim

  • 0
  • 1
  • 2
  • 3
Solutions
Question - 9

Which of the following indexing capabilities is used as a concise means of selecting data from a pandas object?

  • In
  • ix
  • ipy
  • iy
Solutions
Question - 10

Python pandas were developed by?

  • Guido van Rossum
  • Travis Oliphant
  • Wes McKinney
  • Brendan Eich
Solutions
Question - 11

Python pandas were developed by? What will be the correct syntax for the pandas series?

  • pandas_Series( data, index, dtype, copy)
  • pandas.Series( data, index, dtype)
  • pandas.Series( data, index, dtype, copy)
  • pandas_Series( data, index, dtype)
Solutions
Question - 12

 Axis 1, in the panel, represents?

  • minor_axis
  • major_axis
  • items
  • None of these
Solutions
Question - 13

The ________ project builds on top of pandas and matplotlib to provide easy plotting of data.

  • yhat
  • Seaborn
  • Vincent
  • Pychart
Solutions
Question - 14

Why ndim is used?

  • Returns the number of elements in the underlying data.
  • Returns the Series as ndarray
  • Returns the number of dimensions of the underlying data, by definition 1.
  • Returns a list of the axis labels
Solutions
Question - 15

What will be output for the following code? import pandas as pd import numpy as np s = pd.Series(np.random.randn(2)) print s.size

  • 0
  • 1
  • 2
  • 3
Solutions
Question - 16

Which of the following is false?

  • The integer format tracks only the locations and sizes of blocks of data.
  • Pandas follow the NumPy convention of raising an error when you try to convert something to a bool.
  • Two kinds of SparseIndex are implemented
  • The integer format keeps an arrays of all of the locations where the data are not equal to the fill value
Solutions
Question - 17

Point out the correct statement.

  • If data is a list, if index is passed the values in data corresponding to the labels in the index will be pulled out
  • NaN is the standard missing data marker used in pandas
  • Series acts very similarly to a array
  • None of the above
Solutions
Question - 18

What do we pass in DataFrame in pandas?

  • Integer
  • String
  • pandas series
  • All of the above
Solutions
Question - 19

Series in Pandas is-

  • 1 dimensional array
  • 2 dimensional array
  • 3 dimensional array
  • None of these
Solutions
Question - 20

Minimum numbers of arguments require to pass in pandas series?

  • 0
  • 1
  • 2
  • 3
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