Skip to content

read_html doesn't have infer_types parameter #11764

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
wizardbyron opened this issue Dec 4, 2015 · 4 comments
Closed

read_html doesn't have infer_types parameter #11764

wizardbyron opened this issue Dec 4, 2015 · 4 comments
Labels
Docs IO HTML read_html, to_html, Styler.apply, Styler.applymap
Milestone

Comments

@wizardbyron
Copy link

infer_types is indicated in the "IO Tools page" (http://pandas.pydata.org/pandas-docs/stable/io.html#io-read-html), but not in the API Reference page (http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_html.html) and library v0.17.1

@jreback
Copy link
Contributor

jreback commented Dec 4, 2015

yeh, that was removed finally in 0.17.0 IIRC (was deprecated for quite a while). it should be removed from the main docs.

@jreback jreback added this to the 0.18.0 milestone Dec 4, 2015
@jreback jreback added the IO HTML read_html, to_html, Styler.apply, Styler.applymap label Dec 4, 2015
@wizardbyron
Copy link
Author

I want to keep some numbers in String. How can I do? For example, '000322' is a code in String, not a number.

@srib
Copy link
Contributor

srib commented Dec 5, 2015

Please review and merge #11765

@jorisvandenbossche
Copy link
Member

This has already been asked in several issues (eg also #10684 (comment)), but as far as I can see, the dtype argument is not passed to TextParser (https://github.com/pydata/pandas/blob/master/pandas/io/html.py#L623). It seems not very difficult to do this?

Further I can imagine that others can also be useful, eg decimal, converters, na_values, ...

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

No branches or pull requests

4 participants