DEPR: deprecate Index.getitem with float key by jorisvandenbossche · Pull Request #34193 · pandas-dev/pandas (original) (raw)

I am not really sure this is correct, but it's what is currently actually is being done (the conversion to int is just happening inside the Index.__getitem__). So this change is needed to preserve the current behaviour.

It's a bit strange that those xticks are floats, though. But maybe that's just a matplotlib behaviour.