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
Creating a Series that is not backed by a NumPy array requires the ExtensionArray object to implement _reduce to correctly delegate the method. The following method reproduces the exception:
Yes, we didn't come to this part of the interface yet (the initial use cases did not yet need reducing functions), but is is certainly something we need to add (and will need that as well for the internal extension arrays such as int NA).
See also #21789. So let's use that issues to discuss.
Creating a
Series
that is not backed by a NumPy array requires theExtensionArray
object to implement_reduce
to correctly delegate the method. The following method reproduces the exception:With the respective exeception:
To fix this bug, I would:
Categorical._reduce
to theExtensionArray
interface.pandas.tests.extension.base.BaseReductionOpsTests
to verify the output of these tests.The text was updated successfully, but these errors were encountered: