Python Panda Data Frame Quiz 1

25 Questions | Total Attempts: 2591

SettingsSettingsSettings
Python Panda Data Frame Quiz 1 - Quiz

How much do you know about Data Frame? Attempt this basic Data Frame quiz to test your knowledge!


Questions and Answers
  • 1. 
    Define Data Frames.
  • 2. 
    -------- is the most popular open-source Python library used for doing data analysis.
    • A. 

      Numpy

    • B. 

      Pandas

    • C. 

      Matplotlib

  • 3. 
    In order to work with Pandas in Python, you need to import pandas library in your Python environment.
    • A. 

      True

    • B. 

      False

  • 4. 
    A Series is a Pandas data structure that represents a one-dimensional array-like object of indexed data.
    • A. 

      True

    • B. 

      False

  • 5. 
    The two basic and universally-popular data structures of Pandas are ........... and ............
    • A. 

      Series DataFrame

    • B. 

      Numpy DataFrame

    • C. 

      Series Pandas

  • 6. 
    To create a series object, ------- method is used.
    • A. 

      Array()

    • B. 

      Series()

    • C. 

      Arange()

  • 7. 
    To create an empty series object, Series() method is used with ---------.
  • 8. 
    Missing data in Pandas series and data frames can be filled with a ........... value.
  • 9. 
    Data Frame has -----------indices.
  • 10. 
    Selecting a subset from a data frame requires ----- and -----functions.
  • 11. 
    ............ method helps in understanding and analyzing the behaviour of data.
  • 12. 
    ----- is the process of turning the value of a dataset ( or a subset of it)into one single value.
  • 13. 
    ................ function is used for finding the highest values from a given set of values or column of a dataframe or a series.
  • 14. 
    .......... function is used to add all of the values in a particular column of a dataframe.
  • 15. 
    Passing -------- argument skips the missing values by default.
  • 16. 
    ............ function calculates the most occurance of each element along the axis selected.
  • 17. 
    A sereis object is 2D array that stores ordered collection of columns that can store data of different tuple.
  • 18. 
    A data frame is a 1D array like object containing an array of data and an associated array of data labels.
    • A. 

      True

    • B. 

      False

  • 19. 
    To access subset of a dataframe we can use loc() method.
    • A. 

      True

    • B. 

      False

  • 20. 
    The value NaN/NAT/None are the same in Pandas.
    • A. 

      True

    • B. 

      False

  • 21. 
    The all() and any() functions are used to check if all or any item is non zero, not-empty, or not false.
    • A. 

      True

    • B. 

      False

  • 22. 
    Which of the following commands is used to install Pandas?
    • A. 

       pip install python-pandas  

    • B. 

      Pip install pandas

    • C. 

      Python install python

    • D. 

      Python install pandas

  • 23. 
    A two-dimensional labelled array that is ordered collection of columns to store heterogeneous data type is:
    • A. 

      Series

    • B. 

      NumPy array

    • C. 

      Data Frame

    • D. 

      Panel  

  • 24. 
    In a data frame axis -0 is for
    • A. 

      Columns

    • B. 

      Rows

    • C. 

      Rows and Columns both

    • D. 

      None of these

  • 25. 
    Which attribute of dataframe is used to perform the transpose operation on a dataframe?
    • A. 

      T

    • B. 

      Ndim

    • C. 

      Empty

    • D. 

      Shape

Back to Top Back to top