how to replace only one cell in pandas code example Example: replace cell pandas df.loc[row_or_index, column_name] = value