DataFrame.to_html should validate that formatters has the correct length #28469
Labels
Error Reporting
Incorrect or improved errors from pandas
good first issue
IO HTML
read_html, to_html, Styler.apply, Styler.applymap
The length of
formatters
should match the number of columnsBoth of these should error with a nice message.
Currntly
In [4]
succeeds, silently ignoring the bad input.In[3]
values with a vagueIndexError: list index out of range
.The text was updated successfully, but these errors were encountered: