Skip to content

DEPR: .str accessor with object dtype #62159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jbrockmendel
Copy link
Member

There are two cases we need an answer for before merging this. One, as I just posted in #29710

looking at doing this, the main problem is .decode. For everything else we can tell users to do obj.astype("str").str, but if you have bytes to start out with, that doesn't work. Unless we assume pyarrow is available and then can tell users to do .astype("bytes[pyarrow]").str.decode

The other is when you can't cast to "str" bc you have funky entries, like in test_to_hdf_errors data = ["\ud800foo"].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR: Deprecate .str accessor on object-dtype.
1 participant