df.loc[df['guest'] > df['home'], 'winner'] = df['guest_name']
df.loc[df['guest'] < df['home'], 'winner'] = df['home_name']
df.loc[df['guest'] == df['home'], 'winner'] = 'tie'
comparing columns pandas python