Skip to content

BUG: pct_change wrong result when there are duplicated indices #30526

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

Merged

Conversation

fujiaxiang
Copy link
Member

@fujiaxiang fujiaxiang commented Dec 28, 2019

@fujiaxiang fujiaxiang changed the title BUG: pct_change wrong result when there are duplicated indices (GH30463) BUG: pct_change wrong result when there are duplicated indices (#GH30463) Dec 28, 2019
@fujiaxiang fujiaxiang changed the title BUG: pct_change wrong result when there are duplicated indices (#GH30463) BUG: pct_change wrong result when there are duplicated indices (#30463) Dec 28, 2019
@fujiaxiang fujiaxiang changed the title BUG: pct_change wrong result when there are duplicated indices (#30463) BUG: pct_change wrong result when there are duplicated indices (GH30463) Dec 28, 2019
@fujiaxiang fujiaxiang changed the title BUG: pct_change wrong result when there are duplicated indices (GH30463) BUG: pct_change wrong result when there are duplicated indices Dec 30, 2019
@jreback jreback added Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Jan 1, 2020
@jreback jreback added this to the 1.0 milestone Jan 1, 2020
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.

tiny comment, other lgtm. ping on green.

@jreback
Copy link
Contributor

jreback commented Jan 1, 2020

@jbrockmendel can you give the tests a quick once over.

@fujiaxiang fujiaxiang requested a review from jreback January 1, 2020 08:27
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.

Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests look good. Thanks @fujiaxiang. Can you confirm that #30526 is completely fixed (the groupby stuff too)?

@TomAugspurger TomAugspurger merged commit 2b1b3da into pandas-dev:master Jan 2, 2020
@jbrockmendel
Copy link
Member

LGTM

@fujiaxiang fujiaxiang deleted the fix_pct_change_duplicated_indices branch January 3, 2020 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pct_change can't work well with groupby, when fill_method =None
4 participants