I tried the following but it didnt work. I am relatively new in pandas, any help is appriciated.
if(lambda x:df['HomeGoals']>df['AwayGoals']):
df['Result']='H'
elif(lambda x:df['HomeGoals']<df['AwayGoals']):
df['Result']='A'
else:
df['Result']='D'