Skip to content

BUG: read_html with a single column table #9178 #9194

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
Closed

BUG: read_html with a single column table #9178 #9194

wants to merge 1 commit into from

Conversation

boarpig
Copy link

@boarpig boarpig commented Jan 3, 2015

This commit fixes a crash on read_html(html, flavor="bs4") if table only has one column.

closes #9178

@jreback
Copy link
Contributor

jreback commented Jan 3, 2015

pls add a test

@cpcloud
Copy link
Member

cpcloud commented Jan 3, 2015

Please add a test

@boarpig
Copy link
Author

boarpig commented Jan 3, 2015

The test should probably test that if it succesfully parses one column table but in which file should I put it? I've never written nose tests.

@rockg
Copy link
Contributor

rockg commented Jan 3, 2015

Usually tests go in the tests sub-directory and in the module you want to test. For example, you should put your test in pandas.io.tests.test_html. And in there probably add a test in the TestReadHtml class. There are plenty of examples there to get you started. And then you can run your test using nosetests (you probably just want to run the module: nosetests pandas.io.tests.test_html).

@jreback jreback added Bug IO HTML read_html, to_html, Styler.apply, Styler.applymap labels Jan 5, 2015
@jreback jreback added this to the 0.16.0 milestone Jan 5, 2015
@jreback
Copy link
Contributor

jreback commented Jan 18, 2015

@boarpig needs a test.

@jreback jreback modified the milestones: 0.16.1, 0.16.0 Mar 5, 2015
@jreback
Copy link
Contributor

jreback commented Mar 5, 2015

@boarpig this needs a test pls.

@jreback jreback modified the milestones: 0.17.0, 0.16.1 Apr 28, 2015
@jreback
Copy link
Contributor

jreback commented Apr 28, 2015

@boarpig pls add a test

@jreback jreback changed the title fixes #9178 and prevent same problem footer too BUG: read_html with a single column table #9178 May 9, 2015
@jreback
Copy link
Contributor

jreback commented May 9, 2015

closing, if/when updated pls reopen

@jreback jreback closed this May 9, 2015
@jorisvandenbossche jorisvandenbossche modified the milestones: 0.17.0, 0.16.2, No action Jun 2, 2015
@hnykda
Copy link

hnykda commented Apr 14, 2016

I have just encountered this bug in 0.18 and the fix from this PR fixed that. Is the only limiting factor to merge this PR adding tests? I could probably do it (and will appreciate any help).

@jreback
Copy link
Contributor

jreback commented Apr 14, 2016

yep needs tests

@hnykda
Copy link

hnykda commented Apr 15, 2016

But I can see there are already tests for this part here. What else should be added? This change seems to be sufficiently tested by current tests. Thanks

@hnykda
Copy link

hnykda commented Apr 24, 2016

I am willing to finish this, but I need an answer to the previous post.

@jreback
Copy link
Contributor

jreback commented Apr 24, 2016

you need to replicate the example in the issue - that is the test

@hnykda
Copy link

hnykda commented Apr 24, 2016

I have done it in a new PR (so I don't have to do a rebase).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO HTML read_html, to_html, Styler.apply, Styler.applymap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash on read_html(url, flavor="bs4") if table has only one column
6 participants