-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Never end up with numpy string dtypes #39566
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
Comments
this is a breaking change, but was never intended and we have 0 support for S (or B) types as native pandas types. |
Can we deprecate this in some way first? And what do you exactly want to change? Only the resulting dtype to be object (but still do the conversion to bytes), or actually disallow casting to bytest altogether? |
One option would be to deprecate |
removing the milestone |
Related: when we pass a np.dtype("S") ndarray to Series or DataFrame do we cast to object? ATM we do this for only a few variants of the DataFrame constructor, not for Series |
Resolving this would fix #52373. |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
As discussed in #39484 we do not want to get numpy string dtypes here. This should have dtype object
The text was updated successfully, but these errors were encountered: