Skip to content

BUG: Fix wrong str.format() calls in Index.summary #4751

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
Sep 5, 2013

Conversation

jtratner
Copy link
Contributor

@jtratner jtratner commented Sep 5, 2013

Fixes #3869.

@jreback
Copy link
Contributor

jreback commented Sep 5, 2013

I rember this one! thxs

@jtratner
Copy link
Contributor Author

jtratner commented Sep 5, 2013

@jreback look okay?

@ghost ghost assigned jtratner Sep 5, 2013
head = head.format()
tail = self[-1]
if hasattr(tail,'format'):
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be: not isinstance(tail ... ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. blah...not on a roll today.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

and I'll change the test case too so it fails if it doesn't check that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually...not so useful to test both of those cases independently...not sure it's important to add more cases...what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

not a big deal this is a bizarre edge case anyhow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

great. then this is done.

@jreback
Copy link
Contributor

jreback commented Sep 5, 2013

otherwise ok

jtratner added a commit that referenced this pull request Sep 5, 2013
BUG: Fix wrong str.format() calls in Index.summary
@jtratner jtratner merged commit dbb3a3d into pandas-dev:master Sep 5, 2013
@jtratner jtratner deleted the fix-summary-GH3869 branch September 5, 2013 02:18
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.

BUG: Key Error: range exception when printing DataFrame
2 participants