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