df['column'] = df['column'].str.replace(',','-')
df
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
df.replace({'column_name':{'A':0,'B':1},'Sex':{'m':0,'f':1}}, inplace=True)
df.loc[df['column'] == 'column_value', 'column'] = 'new_column_value'
# this will replace "Boston Celtics" with "Omega Warrior"
df.replace(to_replace ="Boston Celtics",
value ="Omega Warrior")
df.loc[df['column_name'] == value_you_want_replaced, 'column_name'] = your_value
# You can use replace and pass the strings to find/replace as dictionary keys/items:
df.replace({'
': '<br/>'}, regex=True)
df.replace([0, 1, 2, 3], [4, 3, 2, 1])