Home / Report Question

Q. Which of the following is used to select a column in a pandas DataFrame?
  • A. df.column_name
  • B. df['column_name']
  • C. Both A and B
  • D. df.select_column()