pandas if value present in df index

29

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

Comments

Submit
0 Comments