-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
Current coverage is 85.24% (diff: 100%)
|
# 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'] |
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.
can u also add int
and datetime64(with NaT)
columns to be comprehensive?
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.
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() |
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.
pls loop with keep
patterns also.
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.
Sure thing, will include the keep
kwarg.
…andas-dev#14192) Add keep kwarg and new columns
Added the |
@mroeschke Thanks! |
git diff upstream/master | flake8 --diff
…14192)