BUG: pivot_table with EA dtype that cannot hold NA #55484
Labels
Bug
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Speculative: in
_add_margins
there is a snippetThis seems to assume that the dtype will have
dtype._can_hold_na
, but that is not actually required of ExtensionDtypes. The task here is to implement a test case that gets here with an ExtensionDtype that cannot hold na, make sure it doesn't break things.The text was updated successfully, but these errors were encountered: