df=pd.get_dummies(df,columns=['sex','smoker','region'], drop_first=True) enter image description here

I just wanted to expect not seeing three seperated columns but it is impossible.What is your suggestion?I attached image

0

There are 0 best solutions below