Skip to main content
1 of 2
Gene Xu
  • 111
  • 2

df['Served'] = (df.iloc[:, 1:] == 1).idxmax(1)

Gene Xu
  • 111
  • 2