It is not allowed to set a value for a MultiIndex. It works for the single index. Maybe becaause of the version of pandas.
import pandas as pd
df = pd.DataFrame()
df.loc[('a', 'b'), 'col1'] = 1
print(df)
KeyError: “None of [Index([‘a’, ‘b’], dtype=’object’)] are in the [index]”