-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Implement deep copy option in Series.copy #2721
Comments
Just hasn't been implemented |
i think this might be simple after series inherits ndframe |
closing in favor of #4324, side note, IIRC deep copy should also do a deep copy of the axes (currently it does not), or is that a separate option / action? |
@jreback probably should. (and index probably needs to take an option to deepcopy as well - since generally just copying metadata is enough) |
or if |
After the PR about multi index naming (which tweaks how copying works for Index) is merged it should:
I guess you could pass kwarg for axes but it should default to True, and at the minimum should always shallow copy (which just copies metadata) because contract for objects with axes is/should bw that they can manipulate them in place without any checks. |
@jtrater just hit this with a |
@jreback what? confused. |
no, what I mean is I hit your error message! (was trying to do something funky)....doesn't matter...fixed |
Not quite sure if this is intentional behavior, but noticed that df.copy() accepts argument deep and series.copy() does not.
The text was updated successfully, but these errors were encountered: