This is a bug in pandas. The value is cast to the type of the index before the containment test is done, so 62.5
is converted to 62
. (Note that in
for a Series checks whether the value is in the index, not the values.)
I believe you can get what you want by doing 62.5 in impression_data.values
.