how to replace value in a cell in dataframe code example
Example 1: change value in pandas dataframe cell
df.loc[row_or_index, column_name] = value
Example 2: replace column values pandas
df['column'] = df['column'].str.replace(',','-')
df
df.loc[row_or_index, column_name] = value
df['column'] = df['column'].str.replace(',','-')
df