Question: I need to create a new variable from the column baths, and it should make it such that those observations of 1 bath correspond to
I need to create a new variable from the column baths, and it should make it such that those observations of 1 bath correspond to a value of 0, and those with more than 1 bath correspond to a 1. How would I do this in python?
baths column has 932 rows which range from 1 to 5 by increments of .5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
