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

  • (A) astype()
  • (B) convert()
  • (C) change_type()
  • (D) dtype()
πŸ’¬ Discuss
βœ… Correct Answer: (A) astype()
Explanation: The astype() method converts a column or Series to a specified data type.
Explanation by: Sikhar Chaudhary
The astype() method converts a column or Series to a specified data type.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
82
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
98%
Success Rate