-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Added footer to read_html #8552
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
Conversation
Needs a test. |
Add it in It might be good to have a test that exercises the |
Should probably also test an empty footer like |
@@ -594,7 +594,7 @@ def _expand_elements(body): | |||
|
|||
def _data_to_frame(data, header, index_col, skiprows, infer_types, | |||
parse_dates, tupleize_cols, thousands): | |||
head, body, _ = data # _ is footer which is rarely used: ignore for now | |||
head, body, foot = data # _ is footer which is rarely used: ignore for now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove the comment now
Ok thanks! I was going to add my local test to tests/test_html.py but found an error which meant I hadn't tested this modification properly (and now getting NaNs where there shouldn't be). Will keep working on it, and getting my head around how to use git. |
I was getting |
Hmm, I think I have messed this up! (still very novice at git/github) |
@mjsu ? |
Yep? |
@mjsu just pinging in u. This needs a rebase / squash and to add those items mentioned above. |
I thought I did it. I wasn't quite sure what I was doing so may have done it wrong? |
see here https://github.com/pydata/pandas/wiki/Using-Git try
squash to 1 commit then
|
That done it? (slowly getting my head around this stuff, thanks for the help!) |
good. @cpcloud ? |
@cpcloud pls have a look and merge if ok (you prob have to rebase it) |
@cpcloud ? |
looks good to me, needs a rebase looks like there's some merge conflicts. |
@mjsu thanks! |
read_html neglected table footers. Although rare, some sites use the footer for data. First time pull request so hopefully not messed up.