-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Empty DataFrame.style.render raises IndexError #15953
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
IO HTML
read_html, to_html, Styler.apply, Styler.applymap
Output-Formatting
__repr__ of pandas objects, to_string
Comments
sandipchatterjee
added a commit
to sandipchatterjee/pandas
that referenced
this issue
Apr 10, 2017
Fix attempt for Issue pandas-dev#15953 Handles DataFrames and Series with no rows or columns using `pd.DataFrame().empty` or `pd.Series().empty`
4 tasks
I'll take a stab at this (I'm at PyCon sprint). |
4 tasks
JimStearns206
added a commit
to JimStearns206/pandas
that referenced
this issue
May 23, 2017
DataFrame with an index but no column, and one with a column but no index. Add entry to whatsnew.
JimStearns206
added a commit
to JimStearns206/pandas
that referenced
this issue
May 23, 2017
DataFrame with an index but no column, and one with a column but no index. Add entry to whatsnew.
TomAugspurger
pushed a commit
to TomAugspurger/pandas
that referenced
this issue
May 29, 2017
…r. (pandas-dev#16441) * BUG: Render empty DataFrame as empty HTML table w/o raising IndexError. * TST: Test rendering of 2 empty-ish DataFrames (pandas-dev#15953) DataFrame with an index but no column, and one with a column but no index. Add entry to whatsnew. (cherry picked from commit d9a63d0)
stangirala
pushed a commit
to stangirala/pandas
that referenced
this issue
Jun 11, 2017
…r. (pandas-dev#16441) * BUG: Render empty DataFrame as empty HTML table w/o raising IndexError. * TST: Test rendering of 2 empty-ish DataFrames (pandas-dev#15953) DataFrame with an index but no column, and one with a column but no index. Add entry to whatsnew.
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
Output-Formatting
__repr__ of pandas objects, to_string
Code Sample, a copy-pastable example if possible
Problem description
We assume that there's at least one column (and probably row)
Expected Output
Should match the output of an empty DataFrame in the notebook
The text was updated successfully, but these errors were encountered: