str.extract(expand=False) on a string typed series returns an object typed dataframe #30969
Labels
ExtensionArray
Extending pandas with custom dtypes or arrays.
Strings
String extension data type and string data
Milestone
Code Sample, a copy-pastable example if possible
returns
Problem description
the str accessor, when working on string-typed series, should return a string-typed dataframe. It seems that
extract(expand=False)
returns an object-typed dataframesee @TomAugspurger in #30966 (comment)
Expected Output
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: