-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: insert self.on column _after_ concat #35746
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
REF: insert self.on column _after_ concat #35746
Conversation
…set-dropped-locs-6
new_loc = len(df.columns) | ||
df.insert(new_loc, name, extra_col) | ||
elif name in df.columns: | ||
# TODO: sure we want to overwrite results? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mroeschke can you comment on why we do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't really touched _wrap_results
much so can't really speak to why we do this. What's an example where this is overwriting results?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont have an example on hand, but can find one bc i know this line is covered by tests. ATM im inclined to not-worry about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. ex comment by @mroeschke
Thanks @jbrockmendel |
The idea here is to push towards #34714 by making _wrap_results do things in the same order as other other similar methods do. cc @mroeschke LMK if there is a simpler way to accomplish this.
Orthogonal to #35470, #35730, #35696.