Last answered:

21 Oct 2022

Posted on:

20 Oct 2022


get dummies - why do we need?


I would like to understand why we need to get dummies please? What is the significance of this step?

Thank you.

1 answers ( 0 marked as helpful)
Posted on:

21 Oct 2022


Hey Elisha,

Thank you for reaching out!

Machine learning algorithms work by performing a series of calculations. These calculations cannot be executed if the data we feed into the algorithm is categorical (non-numerical). Therefore, categorical data needs to be substituted by a corresponding numerical value - a dummy variable. That way, the algorithm will be able to perform the calculations that happen in the background.

Hope this helps!

Kind regards,
365 Hristina

Submit an answer