Skip to content

Fix #12292 : error when read one empty column from excel file #12296

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 2 commits into from
Closed

Fix #12292 : error when read one empty column from excel file #12296

wants to merge 2 commits into from

Conversation

BranYang
Copy link
Contributor

Fix #12292
also fix #9002

@jreback jreback added Bug IO Excel read_excel, to_excel labels Feb 12, 2016
header=None
)
expected = DataFrame()
tm.assert_frame_equal(actual, expected)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add another test with headers? (but blank values), not sure if that would even trigger the error, but covering bases

@BranYang BranYang closed this Feb 17, 2016
This time I didn't touch the parser, just inside the excel.py itself.
@BranYang BranYang reopened this Feb 17, 2016
@BranYang
Copy link
Contributor Author

Just made my changes only inside excel.py itself to avoid mess up the html parser.

@BranYang
Copy link
Contributor Author

@jreback please take a look

@jreback
Copy link
Contributor

jreback commented Feb 23, 2016

@BranYang does this also fix #9002

@jreback jreback added this to the 0.18.0 milestone Feb 23, 2016
@jreback
Copy link
Contributor

jreback commented Feb 23, 2016

@BranYang this looks good.

@BranYang
Copy link
Contributor Author

@jreback I can confirm that I captured the StopIteration and return an empty DataFrame. So I believe this also fix #9002

@jreback jreback closed this in 78d671f Feb 27, 2016
@jreback
Copy link
Contributor

jreback commented Feb 27, 2016

thanks @BranYang

@BranYang BranYang deleted the issue12292 branch February 27, 2016 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO Excel read_excel, to_excel
Projects
None yet
2 participants