Direct delegation of Series methods to ExtensionArrays #21305
Labels
Closing Candidate
May be closeable, needs more eyeballs
Enhancement
ExtensionArray
Extending pandas with custom dtypes or arrays.
During the implementation of non-numpy backed ExtensionArrays I quite often run into the case where it is simpler for me to write a complete re-implementation of the method defined on
pd.Series
instead of using the current implementation that only delegates part of the work. It would probably make sense to introduce some sort of delegation mechanism, either we continue the delegation like inpandas/pandas/core/base.py
Line 1041 in 4274b84
__array_ufunc__
: https://docs.scipy.org/doc/numpy/reference/arrays.classes.html#numpy.class.__array_ufunc__My use case where this arises currently is coming from #21296 and
pd.Series.argsort
but I expect that there will be much more cases in this direction while I continue to implement the ExtensionArray interface for Arrow Arrays.The text was updated successfully, but these errors were encountered: