-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DEPR: Series.view #20251
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
Didn't see this one yet, but just opened: #20281. But I agree it is hardly useful given the constraint on keeping the same number of elements. |
The only meaningful use case I could think of is the one I chose for the example in the docstring: converting unsigned int from/to signed int. Basically every other byte conversion is very unlikely to be useful for regular pandas users. Contrived scenario: Let's say I have a really big Series of |
The original example has been fixed since
And |
We use .view a lot in the dt64/td64/period code. i dont think we use it often in the general EA case outside of (Series|Index).view |
I would like to bring this up again, at least for the Deprecating / removing it for |
No objection to deprecating it on Series. |
we do not fully control memory in pandas currently; its defered to numpy, so a
view()
rarely makes sense, esp since we will change the dtype appropriate upon setting, breaking the view association.we should just remove
.view()
entirely.The text was updated successfully, but these errors were encountered: