def answer_three():
if(df['Gold.2']>=1):
return df[df['diff']/df['Gold.2'].max()].index[0]
answer_three()
By writing this code I got an error like this
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool()....
where diff is:
df['diff'] = abs(df['Gold'] - df['Gold.1'])