I like to seperate an nominal variable into two new variables like indoor and outdoor.
e.g. indoor = df[df.Indoor - outdoor == "indoor"]
the variable name in the original file is "Indoor - outdoor"
My question, how to input in order to transfer in a new one? The example results in an error message because [df.Indoor - outdoor ...] obviously cannot find the related variable.
I have tried df.'Indoor - outdoor' and df."Indoor - outdoor" but that is not working. Thanks for your help.