API: integer Extension Array #20700
Could easily imagine an
making these the actual default (e.g. when integers are inferred with or w/o nulls) might be non-trivial, but let's implement first. These would give rise to a hierarchy of dtypes, e.g.
here is a fully-function (extension-wise) integer na: https://github.com/jreback/pandas/tree/intna
I have enabled inference to accept the new types with a Registry, e.g.
so construction is pretty flexible now.
next up is ops
still needs quite a bit more tests / work. (have arithmetic ops done, but need comparison, and more indexing tests)
But i think directly in pandas. Note that this does not actually switch the base inference (e.g. [1,2 ,3]) still resolves to int64, we can do that at a later point). I suspect will have to change quite a lot of tests as we assume float conversions in a myriad of ways.