S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which pandas method is used to create dummy/indicator variables?

  • (A) get_dummies()
  • (B) dummy_vars()
  • (C) to_categorical()
  • (D) one_hot()
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
get_dummies() converts categorical variables into one-hot encoded columns for machine learning tasks.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics