Skip to main content
2 of 2
formatted code
I_Play_With_Data
  • 2.1k
  • 3
  • 17
  • 40
df['Served'] = (df.iloc[:, 1:] == 1).idxmax(1)
Gene Xu
  • 111
  • 2