replace value in pandas dataframe using loc code example Example: dataframe loc change values %timeit df.at['Bill', 'language'] = 'Python'