📅  最后修改于: 2022-03-11 14:45:33.389000             🧑  作者: Mango
note: u can assigne values in each of the common values in the dataframe
df['new_coloum'] = df['coloum'].map({'value_1':1,'value_2':0})