Skip to content

BUG: Fix drop_duplicates failure when DataFrame has no column #20974

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

Conversation

Licht-T
Copy link
Contributor

@Licht-T Licht-T commented May 7, 2018

@codecov
Copy link

codecov bot commented May 7, 2018

Codecov Report

Merging #20974 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #20974      +/-   ##
==========================================
- Coverage   91.82%   91.81%   -0.01%     
==========================================
  Files         153      153              
  Lines       49483    49485       +2     
==========================================
  Hits        45437    45437              
- Misses       4046     4048       +2
Flag Coverage Δ
#multiple 90.21% <100%> (-0.01%) ⬇️
#single 41.84% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/frame.py 97.13% <100%> (ø) ⬆️
pandas/util/testing.py 84.38% <0%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 587a0dd...95a07a2. Read the comment docs.

@jreback jreback added Bug Indexing Related to indexing on series/frames, not to indexes themselves Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels May 8, 2018
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.

can you add a whatsnew note

@@ -4354,6 +4354,9 @@ def duplicated(self, subset=None, keep='first'):
from pandas.core.sorting import get_group_index
from pandas._libs.hashtable import duplicated_int64, _SIZE_HINT_LIMIT

if self.columns.empty:
return Series()
Copy link
Contributor

Choose a reason for hiding this comment

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

dtype='bool'?

Copy link
Contributor

Choose a reason for hiding this comment

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

Good to be explicit here. We'll be changing this from float to object soon.

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.

can you update & add a whatsnew note

@jreback
Copy link
Contributor

jreback commented Jun 19, 2018

0.23.2 is good.

@jreback jreback added this to the 0.23.3 milestone Jun 26, 2018
@jreback
Copy link
Contributor

jreback commented Jun 26, 2018

@Licht-T if you can update to comments we can put in 0.23.2

@jreback
Copy link
Contributor

jreback commented Aug 1, 2018

can u rebase

@jreback jreback removed this from the 0.23.4 milestone Aug 2, 2018
@jreback
Copy link
Contributor

jreback commented Aug 17, 2018

closing in favor of #22394

@jreback jreback closed this Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calling drop_duplicates method for empty pandas dataframe throws error
3 participants