-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Passing an invalid flavor to read_html prints the wrong error message #23549
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
Labels
Bug
Error Reporting
Incorrect or improved errors from pandas
good first issue
IO HTML
read_html, to_html, Styler.apply, Styler.applymap
Comments
We actually have a test for this, but we don't check the error message. Oops. |
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Nov 7, 2018
The flavors were not rendering properly in the string formatting. Closes pandas-devgh-23549. Follow-up to pandas-devgh-17660.
TomAugspurger
pushed a commit
that referenced
this issue
Nov 8, 2018
JustinZhengBC
pushed a commit
to JustinZhengBC/pandas
that referenced
this issue
Nov 14, 2018
The flavors were not rendering properly in the string formatting. Closes pandas-devgh-23549. Follow-up to pandas-devgh-17660.
tm9k1
pushed a commit
to tm9k1/pandas
that referenced
this issue
Nov 19, 2018
The flavors were not rendering properly in the string formatting. Closes pandas-devgh-23549. Follow-up to pandas-devgh-17660.
Pingviinituutti
pushed a commit
to Pingviinituutti/pandas
that referenced
this issue
Feb 28, 2019
The flavors were not rendering properly in the string formatting. Closes pandas-devgh-23549. Follow-up to pandas-devgh-17660.
Pingviinituutti
pushed a commit
to Pingviinituutti/pandas
that referenced
this issue
Feb 28, 2019
The flavors were not rendering properly in the string formatting. Closes pandas-devgh-23549. Follow-up to pandas-devgh-17660.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
Error Reporting
Incorrect or improved errors from pandas
good first issue
IO HTML
read_html, to_html, Styler.apply, Styler.applymap
Code Sample, a copy-pastable example if possible
Problem description
The error message should show the
flavor
selected and the valid choices. It's happenning on this line below, and it's a regression from previous versions, which used%
-formatting and worked properly.pandas/pandas/io/html.py
Line 857 in de39bfc
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.7.0.final.0
python-bits: 64
OS: Darwin
OS-release: 18.2.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.23.4
pytest: None
pip: 18.1
setuptools: 40.5.0
Cython: None
numpy: 1.15.4
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: