0

When I run

the_id in attrs['ID']
2941264 in pd.Series([2941264,2941273,2941273,2941282]) # or this

I get False. But when I run

any(attrs['ID'].isin([the_id]))

I get True.


How does a Pandas Series implement in?

That is, why does Series have this unintuitive behaviour?

And how could different results be produced from it?

ifly6
  • 5,003
  • 2
  • 24
  • 47

0 Answers0