ENH: Add nsmallest/nlargest method support for extension array #42737
Labels
Enhancement
ExtensionArray
Extending pandas with custom dtypes or arrays.
Needs Discussion
Requires discussion from core team before further action
When dealing with regular series, one can do :
When using an extension array (user-defined in my case), calling the
.nsmallest
method raises a TypeError (full message below):This seems to happen because the extension dtype is not "registered" to
is_valid_dtype_n_method
.Would it be feasable to support
nsmallest
/nlargest
for extensions ?pandas version : 1.3.0.
The text was updated successfully, but these errors were encountered: