-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Arrowpyarrow functionalitypyarrow functionalityBugStringsString extension data type and string dataString extension data type and string data
Description
Pandas version checks
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pandas.
-
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
import pandas as pd
import io
data ='''make,city08
Alfa Romeo,19
Ferrari,9
Dodge,23
Dodge,10
Subaru,17'''
df = pd.read_csv(io.StringIO(data), dtype_backend='pyarrow')
df.make.str.extract(r'([^a-z A-Z])')
Issue Description
The str.extract
method raises a NotImplementedError
when used on a series with the pd.ArrowDtype(pa.string())
data type.
Expected Behavior
Execute like it does with Pandas 1 strings.
Installed Versions
the str.extract
method raises a NotImplementedError
when used on a series with the pd.ArrowDtype(pa.string())
data type.
Metadata
Metadata
Assignees
Labels
Arrowpyarrow functionalitypyarrow functionalityBugStringsString extension data type and string dataString extension data type and string data