A

Admin • 828.03K Points
Coach

Q. How to change the data type of a column in pandas?

  • (A) df.astype()
  • (B) df.change_type()
  • (C) df.convert()
  • (D) df.set_type()
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`astype()` is used to change the data type of a column.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.