S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to change the data type of a column in pandas?

  • (A) astype()
  • (B) convert()
  • (C) change_type()
  • (D) dtype()
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
The astype() method converts a column or Series to a specified data type.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.