replacing index 0,1,2 .... with certain numbers pandas dataframe code example
Example: replacing values in pandas dataframe
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')