Skip to content

BUG: fixes 13822, incorrect KeyError string with non-unique columns w… #13845

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

shawnheide
Copy link
Contributor

Made changes to fix the bug related to accessing columns in a df with duplicate columns where the KeyError string was returning the wrong column.

The test that I added passed, but there seems to be a test that won't pass and I wasn't sure what's going on. Even on a clean master, when I run "nosetests pandas/tests/indexing/test_indexing.py" I get "ERROR: test_float64index_slicing_bug (pandas.tests.indexing.test_indexing.TestIndexing)".

@codecov-io
Copy link

Current coverage is 85.25% (diff: 100%)

Merging #13845 into master will increase coverage by <.01%

@@             master     #13845   diff @@
==========================================
  Files           140        140          
  Lines         50455      50456     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          43014      43016     +2   
+ Misses         7441       7440     -1   
  Partials          0          0          

Powered by Codecov. Last update 59f2557...ae56be0

@sinhrks sinhrks added Indexing Related to indexing on series/frames, not to indexes themselves Error Reporting Incorrect or improved errors from pandas labels Jul 30, 2016
@sinhrks sinhrks added this to the 0.19.0 milestone Jul 30, 2016
@jreback jreback closed this in 768bf49 Aug 2, 2016
@jreback
Copy link
Contributor

jreback commented Aug 2, 2016

thanks!

@shawnheide shawnheide deleted the BUG_13822 branch December 14, 2016 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyError shows incorrect column name when DataFrame has duplicate columns
4 participants