Online Test On Pandas Part -i For Xii IP 2020-21

30 Questions | Total Attempts: 1415

SettingsSettingsSettings
Please wait...
Online Test On Pandas Part -i For Xii IP 2020-21

.


Questions and Answers
  • 1. 
    Which of the following thing can be data in Pandas?
    • A. 

      A python dict

    • B. 

      An ndarray

    • C. 

      A scalar value

    • D. 

      All of the mentioned

  • 2. 
    Point out the correct statement.
    • A. 

      If data is a list, if index is passed the values in data corresponding to the labels in the index will be pulled out

    • B. 

      NaN is the standard missing data marker used in pandas

    • C. 

      Series acts very similarly to a array

    • D. 

      None of the mentioned

  • 3. 
    The result of an operation between unaligned Series will have the ________ of the indexes involved.
    • A. 

      Intersection

    • B. 

      Union

    • C. 

      Total

    • D. 

      All of the mentioned

  • 4. 
    Which of the following input can be accepted by DataFrame?
    • A. 

      Structured ndarray

    • B. 

      Series

    • C. 

      DataFrame

    • D. 

      All of the mentioned

  • 5. 
    Point out the wrong statement.
    • A. 

      A DataFrame is like a fixed-size dict in that you can get and set values by index label

    • B. 

      Series can be be passed into most NumPy methods expecting an ndarray

    • C. 

      A key difference between Series and ndarray is that operations between Series automatically align the data based on label

    • D. 

      None of the mentioned

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

      DataFrame.from_items

    • B. 

      DataFrame.from_records

    • C. 

      DataFrame.from_dict

    • D. 

      All of the mentioned

  • 7. 
    Which of the following works analogously to the form of the dict constructor?
    • A. 

      DataFrame.from_items

    • B. 

      DataFrame.from_records

    • C. 

      DataFrame.from_dict

    • D. 

      All of the mentioned

  • 8. 
    Which of the following operation works with the same syntax as the analogous dict operations?
    • A. 

      Getting columns

    • B. 

      Setting columns

    • C. 

      Deleting columns

    • D. 

      All of the mentioned

  • 9. 
    Best way to import the pandas module in your program ?
    • A. 

      Import pandas

    • B. 

      Import pandas as p

    • C. 

      From pandas import *

    • D. 

      All of the above

  • 10. 
    DataFrame in pandas is
    • A. 

      1 dimensional array

    • B. 

      2 dimensional array

    • C. 

      3 dimensional array

    • D. 

      None of the above

  • 11. 
    For what purpose a Pandas is used ?
    • A. 

      To create a GUI programming

    • B. 

      To create a database

    • C. 

      To create a High level array

    • D. 

      All of the above

  • 12. 
    Minimum number of argument we require to pass in pandas series ?
    • A. 

      0

    • B. 

      1

    • C. 

      2

    • D. 

      3

  • 13. 
    Series in Pandas is
    • A. 

      1 dimensional array

    • B. 

      2 dimensional array

    • C. 

      3 dimensional array

    • D. 

      None of the above

  • 14. 
    We can analyze the data in pandas with :
    • A. 

      Series

    • B. 

      DataFrame

    • C. 

      Both of the above

    • D. 

      None of the above

  • 15. 
    Which function from the options given below can read the dataset from a large text file?
    • A. 

      Read_json

    • B. 

      Read_pickle

    • C. 

      Read_hdf

    • D. 

      Read_csv

  • 16. 
    This function in the library of Pandas allows you to manipulate data and create new variables:
    • A. 

      Read_csv function

    • B. 

      Pivot_table function

    • C. 

      Apply function

    • D. 

      Merge function

  • 17. 
     Which of these is an invalid writer function in Pandas?
    • A. 

      To_clipboard

    • B. 

      To_text

    • C. 

      To_stata

    • D. 

      To_msgpack

  • 18. 
    Identify the correct statement:
    • A. 

      Moving window statistics is present in pandas.

    • B. 

      Pandas have a set of array data structures which are labelled.

    • C. 

      Pandas consists of an integrated group by engine for transforming and aggregating data sets.

    • D. 

      All of the above

  • 19. 
    Data structures in Pandas can be mutated in the terms of ____ but not of _____.
    • A. 

      Size, value

    • B. 

      Value,size

    • C. 

      Semantic, size

    • D. 

      None of the above

  • 20. 
    Assume that you are given two lists: a = [1,2,3] b = [4,5,6] Your task is to create a list which contains all the elements of a and b in a single dimension. Output: a = [1,2,3,4,5,6] Which of the following functions will you use?
    • A. 

      A.append(b)

    • B. 

      A.extend(b)

    • C. 

      Any one of the above

    • D. 

      None of the above

  • 21. 
    If data is an ndarray, index must be the same length as data.
    • A. 

      True

    • B. 

      False

  • 22. 
    Are DataFrames container for Series.
    • A. 

      True

    • B. 

      False

  • 23. 
    Pandas is an Open source Software.
    • A. 

      True

    • B. 

      False

  • 24. 
    The Boolean values like 1 & 2 can be used as indexes in panda dataframe.
    • A. 

      True

    • B. 

      False

  • 25. 
    Once NumPy array is created its size can be changed.
    • A. 

      True

    • B. 

      False

Back to Top Back to top