Learn practical skills, build real-world projects, and advance your career
Handle Categorical Features
One Hot Encoding
import pandas as pd
df=pd.read_csv('titanic.csv',usecols=['Sex'])
df.head()
pd.get_dummies(df)