-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
requested edit to comparison method #27873
Conversation
thanks, ideally add to this to a todo list |
@jreback if it is a PR specifically for my comments, can you please give me a bit of time to review it? There were actually more things we were discussing than this. |
sure |
@jbrockmendel what I wanted to ask in addition:
|
I'd rather not test not-necessarily-intentional behavior until we pin down the desired behavior in #27911
Sure.
Doesn't it do a shallow copy? I guess creating a new Series object is more costly than the check in the case where it isnt needed? Wouldn't it be cheaper yet to unconditionally just set |
Well, it's working behaviour that people will rely upon, so we shouldn't just break it IMO. So in that case a test would be useful. It would eg have catched the changes you were doing in the previous PR, and will do if you or someone further work on that code in the future (we are now well aware, but if we only pick it up again in some months, we might well have forgotten again)
Nope, it returns a new object, which currently means copying the data (we don't yet have a copy-on-write) |
But will take a look at the issue you linked |
And it would also have helped to catch https://github.com/pandas-dev/pandas/pull/27769/files#r314060256 :-) |
cc @jorisvandenbossche discussed in #27803