I want to use get_dummies()
with more than a coulmn. ('CabinNumber', 'Name'
contain strings ) when i delete one of them and use xtr = pd.get_dummies(x['Name']) my code works
I tried everything in this answer. However i could not get my code to work.
x = df.loc[df['Price'].notnull(), ['Age','Fee', 'Size','Class','CabinNumber', 'Name' ]]
I tried:
xtr = pd.get_dummies(data=x, columns=['CabinNumber', 'Name'])
I tried:
xtr = pd.get_dummies(df.loc[df['Price'].notnull(), ['Age','Fee', 'Size','Class','CabinNumber', 'Name' ]])