I am trying to calculate the biggest difference between summer gold medal counts and winter gold medal counts relative to their total gold medal count. The problem is that
def answer_two(): df2=pd.Series.max(df['Gold']-df['Gold.1']) df2=df[df['Gold']-df['Gold.1']==df2] return df2.index[0] answer_two()