Pandas DataFrame no puede cambiar los valores
for index, row in df.iterrows():
if row['Freq'] == 20:
df.loc[index, 'TOC'] = True
Clear Copperhead
for index, row in df.iterrows():
if row['Freq'] == 20:
df.loc[index, 'TOC'] = True