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
{{ message }}
Repository navigation
Separating lines break sized row indices and shift DataFrame labels #464
showindex supplied as a list or tuple counts separating lines as data rows during length validation. The equivalent iterator succeeds. Separating lines should not consume row index values.
The list raises ValueError: index must be as long as the number of data rows: len(index)=2 len(rows)=3. Conversely, a list of three IDs succeeds but silently drops its last ID. There are only two data rows.
The same counting problem affects a DataFrame's own index labels when a separator row is present:
The final data row gets the label separator rather than row-b. Its original label should stay attached to that row.
I reproduced these cases locally on Windows/Python 3.13 and prepared a small fix with public regression tests. AI assistance was used for investigation and review; the reproductions and tests were executed locally.
Activity