S

Sikhar Chaudhary • 5.88K Points
Tutor III

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: 46
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
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.


Question analytics