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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!