You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked a bit into this. The underlying issue is that _get_bool_data() does an implicit slice and slicing a RangeIndex always returns a NumericIndex[dtype=int64].
I think the above is correct, i.e. slicing a RangeIndex should always return the same index type, i.e. a NumericIndex, even if its has length 0. SO IMO RangeIndex behaves correctly.
So the issue here seems to be in BaseBlockManager._combine where the use of slicing the index is forced, which does seems to be not needed in this case. So the question is maybe if slicing there should be not done in some case (especially where there is only 1 block).
This came up in #50636
cc @topper-123
The text was updated successfully, but these errors were encountered: