for i, row in lst.iterrows():
value1 = a
value2 = b
result = 12345
if df[(df['column1'] == value1) & (df['column2'] == value2)]:
df['column_result'] == result
print df
I want to look up in a dataframe a row where column1 equals value1 and column2 equals value2 and fill in result in that row.
I receive this error: ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().