Creating-Dummy-Variables-Simulation

I try to simulate dummy variable using a data of Movie Classification.

  1. import related Python libraries such as pandas and numpy

text image

  1. define df by extracting the data movie_classification.csv into pandas data frame

text image

  1. show the first 5 data in a row and choose which variable that should be converted into dummy. In this case, 3D available and Genre

text image

  1. dummy is created

text image