Skip to content
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

Merged
merged 2 commits into from
Aug 20, 2020

Conversation

jbrockmendel
Copy link
Member

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.

@mroeschke mroeschke added Refactor Internal refactoring of code Window rolling, ewma, expanding labels Aug 16, 2020
@mroeschke mroeschke added this to the 1.2 milestone Aug 16, 2020
new_loc = len(df.columns)
df.insert(new_loc, name, extra_col)
elif name in df.columns:
# TODO: sure we want to overwrite results?
Copy link
Member Author

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?

Copy link
Member

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?

Copy link
Member Author

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

Copy link
Contributor

@jreback jreback left a 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

@mroeschke mroeschke merged commit 98d8065 into pandas-dev:master Aug 20, 2020
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the reset-dropped-locs-6 branch August 20, 2020 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants