pandas if value present in df index

39

i = 'g'
if i in df.index:
  print(i)

Comments

Submit
0 Comments