Dummy Variables in Machine Learning.

Dummy Variables representing male and female gender.
The dummy columns will be created by calling the pandas.get_dummies function and passing in the target column in this case being the car model column as the input
The new DataFrame
Setting the y variable as the variable being predicted.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abigael Nyakara

Abigael Nyakara

Data Science Made Easy!. I explain data science concepts in a way that is easy to understand using relatable examples and example code.