Skip to content

BUG: Spurious matches in DataFrame.duplicated when keep=False #11894

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

Closed
wants to merge 1 commit into from

Conversation

evanpw
Copy link
Contributor

@evanpw evanpw commented Dec 24, 2015

Fixes GH #11864

@@ -8510,6 +8510,11 @@ def test_drop_duplicates(self):
df = pd.DataFrame([[-x, x], [x, x + 4]])
assert_frame_equal(df.drop_duplicates(), df)

# GH 11864
df = pd.DataFrame([i] * 9 for i in range(16))
df = df.append([[1] + [0] * 8], ignore_index=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

can u run thru all of the keep options in a loop here

@jreback
Copy link
Contributor

jreback commented Dec 24, 2015

lgtm - ping when updated and green

@jreback jreback added Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Dec 24, 2015
@jreback jreback added this to the 0.18.0 milestone Dec 24, 2015
@jreback
Copy link
Contributor

jreback commented Jan 7, 2016

@evanpw can you rebase / update

@evanpw
Copy link
Contributor Author

evanpw commented Jan 7, 2016

Added test loop, rebased, travis is green.

@jreback
Copy link
Contributor

jreback commented Jan 7, 2016

merged via b431f85

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants