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