CBSE CS and IP

CBSE Class 11 & 12 Computer Science and Informatics Practices Python Materials, Video Lecture

DataFrame operations (1 Mark Questions)


  1. To perform the operation row/column wise, which of the function should be used:
    • pipe()
    • apply()
    • applymap()
    • pivot()
  2. groupby() can be used:
    • Between two DataFrames
    • Among two or more DataFrame
    • Within a DataFrame
    • Only on single column of a DataFrame
  3. sort_values by default sort the values in:
    • ascending
    • descending
    • does not have any default value
    • Depends on data of DataFrame
  4. A method that simply rename the index/column labels in Data Frame:
    • reindex()
    • rename()
    • reindex_like()
    • rename_columns()
  5. ______________ method in Pandas can be used to change the index of rows and columns of a Series or Dataframe :
    • rename()
    • reindex()
    • reframe()
    • none of the above
  6. What is pivoting?

No comments:

Post a Comment