Use the dummy function to convert categorical functions to Boolean columns
concatenate the variables so they all show up as new columns on the dataset
now we can drop columns that are no longer needed. We are only looking at the male and female columns in this exercise.
With the output one can notice we are just left with male and female columns
Use the dummy function to convert categorical functions to Boolean columns this time for the conforming loan limit column.
concatenate the variables so they all show up as new columns on the dataset
now we can drop columns that are no longer needed.
with the output there are now two new columns conforming =1 and not conforming = NC
Perform the same tasks for the action taken column the category
Drop columns we no longer need
Export to a csv file