map dataframe

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})

Here is what the above code is Doing:
1. We’re creating a new column called ‘new_coloum’ in our dataframe.
2. We’re mapping the values in the ‘coloum’ column to a dictionary where the keys are the values we want to map to 1 and the values are the values we want to map to 0.
3. We’re assigning these mapped values to the new column we created.