-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
ExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.RefactorInternal refactoring of codeInternal refactoring of codeStringsString extension data type and string dataString extension data type and string data
Milestone
Description
This is an issue to track a refactor of StringMethods that'll be necessary for ArrowStringArray to use pyarrow compute algorithms.
We'll need to update StringMethods
- Extract the array from the Series / Index
- Dispatch the string methods
- Wrap the result
So in my proposal, we'll have something like
class StringMethods:
def __init__(self, data, ...):
self._array = data.array
...
def upper(self):
return self._wrap_result(self._array._str.upper())
cc @xhochy. I have a branch started and will hopefully finish it off this week.
Metadata
Metadata
Assignees
Labels
ExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.RefactorInternal refactoring of codeInternal refactoring of codeStringsString extension data type and string dataString extension data type and string data