A

Admin • 833.24K Points
Coach

Q. What does `drop(columns=['col1'])` do?

  • (A) Deletes the 'col1' row
  • (B) Deletes the 'col1' column
  • (C) Renames 'col1'
  • (D) Sorts 'col1'
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin

`drop(columns=['col1'])` drops the specified column.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.