Skip to content

TST: Tests for multi-index construction of an all-nan frame (GH4078) #5089

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
Oct 2, 2013

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Oct 2, 2013

closes #4078

@jreback
Copy link
Contributor Author

jreback commented Oct 2, 2013

@jtratner leaving for you take a look

else:
items = _ensure_index([n for n in names if n in ref_items])
if len(items) != len(stacked):
raise Exception("invalid names passed _stack_arrays")
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 make this msg more informative ... i actually made an exception subclass in my read_html but i don't think that's necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe ValueError? (or maybe make a InvalidDuplicate inherti from Valueerror?)

Copy link
Member

Choose a reason for hiding this comment

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

i tried a valueerror but that broke some things, didn't get to the obttom of it ... i assume value error is caught higher up in the stack and is used in a non-error way

Copy link
Member

Choose a reason for hiding this comment

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

it broke enough things to make figuring out why things were breaking to be a distraction from getting read_html ready

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do you have a test case that actually hits this? (it may be that was hitting with a mi in the past)

Copy link
Member

Choose a reason for hiding this comment

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

nope can't repro it now, even if change the above to valueerror...so 👍 on the ValueError change

@cpcloud
Copy link
Member

cpcloud commented Oct 2, 2013

@jreback want to merge? @jtratner gave the 🆗

@jreback
Copy link
Contributor Author

jreback commented Oct 2, 2013

let me rebase and merge...hold a sec

jreback added a commit that referenced this pull request Oct 2, 2013
TST: Tests for multi-index construction of an all-nan frame (GH4078)
@jreback jreback merged commit 33fbcbb into pandas-dev:master Oct 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ER: multiindexes in no-data DataFrame constructor should yield a nan frame
2 participants