change value of specific cell pandas code example
Example 1: change value in pandas dataframe cell
df.loc[row_or_index, column_name] = value
Example 2: change dataframe value by index
x y
A NaN NaN
B NaN NaN
C NaN NaN
df.at['C', 'x'] = 10