Skip to content

TST: Same return values in drop_duplicates for Series and DataFrames(#… #14754

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
merged 1 commit into from
Dec 15, 2016

Conversation

mroeschke
Copy link
Member

…14192)

@mroeschke mroeschke changed the title TST:Same return values in drop_duplicates for Series and DataFrames(#… TST: Same return values in drop_duplicates for Series and DataFrames(#… Nov 27, 2016
@sinhrks sinhrks added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Testing pandas testing functions or related to the test suite labels Nov 27, 2016
@sinhrks sinhrks added this to the 0.19.2 milestone Nov 27, 2016
@codecov-io
Copy link

codecov-io commented Dec 1, 2016

Current coverage is 85.24% (diff: 100%)

No coverage report found for master at 725453d.

Powered by Codecov. Last update 725453d...8b84d12

# GH 14192
df = pd.DataFrame({'a': [1, 1, 1, 'one', 'one'],
'b': [2, 2, np.nan, np.nan, np.nan],
'c': [3, 3, np.nan, np.nan, 'three']
Copy link
Member

Choose a reason for hiding this comment

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

can u also add int and datetime64(with NaT) columns to be comprehensive?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure thing. Will add those columns tonight.

'c': [3, 3, np.nan, np.nan, 'three']
})
for column in df.columns:
dropped_frame = df[[column]].drop_duplicates()
Copy link
Member

Choose a reason for hiding this comment

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

pls loop with keep patterns also.

Copy link
Member Author

@mroeschke mroeschke Dec 1, 2016

Choose a reason for hiding this comment

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

Sure thing, will include the keep kwarg.

@mroeschke
Copy link
Member Author

Added the keep kwarg and added int and datetime64 columns @sinhrks

@jorisvandenbossche jorisvandenbossche modified the milestones: 0.20.0, 0.19.2 Dec 15, 2016
@jorisvandenbossche jorisvandenbossche merged commit 5f889a2 into pandas-dev:master Dec 15, 2016
@jorisvandenbossche
Copy link
Member

@mroeschke Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TST: Difference in drop_duplicates for numeric Series and DataFrames
4 participants