modify a cell in pandas Serires code example Example: replace cell pandas df.loc[row_or_index, column_name] = value