You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix IndexError with maxheadercolwidths on empty tables
When maxheadercolwidths is set and the table has no data rows,
list_of_lists[0] raises an IndexError since the list is empty.
Fall back to len(headers) when list_of_lists is empty to determine
the number of columns, matching how maxcolwidths already handles
the same scenario.
0 commit comments