Pandas DataFrame nie jest w stanie zmienić wartości
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