Skip to content

Fix IndexError During Table Transpose#13

Open
avidadearthur wants to merge 1 commit into
dmnfarrell:masterfrom
avidadearthur:headerData-patch-1
Open

Fix IndexError During Table Transpose#13
avidadearthur wants to merge 1 commit into
dmnfarrell:masterfrom
avidadearthur:headerData-patch-1

Conversation

@avidadearthur
Copy link
Copy Markdown

Check whether col is less than the length of the columns or the index, depending on the orientation, before trying to access the value. If col is out of bounds, it will simply return None, avoiding the IndexError.

Closes #12.

This code checks whether col is less than the length of the columns or the index, depending on the orientation, before trying to access the value. If col is out of bounds, it will simply return None, avoiding the IndexError.
@avidadearthur avidadearthur changed the title Check for index size before trying to access it during table transpose Fix IndexError During Table Transpose May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

headerData throws index error in Python 3.11.4

1 participant