Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started