S

Shyam Dubey • 3.70K Points
Extraordinary

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

Explanation by: Shyam Dubey
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.

Be the first to start discuss.