I would like to create a new column under the following condition:
So basically I have two column Majoy car
and Major housetype
. I would let all the 'nocar'
within Majoy car
AND 'Rented'
within Major housetype
to merge to a new column.
My DataFrame is imd_car_house
I have tried: imd_car_house.loc[(cond1) | (cond2), :]
but this is not working.