文中数据以Titanic数据集为例
1、Query the column
titanic_df['Embarked'][titanic_df['Embarked']=='S'] = 0
titanic_df['Embarked'][titanic_df['Embarked']=='Q'] = 1
titanic_df['Embarked'][titanic_df['Embarked']=='C'] = 2
titanic_df['Embarked']= titanic_df['Embarked'].astype(np.int64)
2、map()