Skip to content

How to get row_key from row index? #5250

Answered by recsater-uf
JOJ0 asked this question in Q&A
Discussion options

You must be logged in to vote

Here is the actual answer to the title, not one modified based on author's original intention.

def row_index_to_key(table, index): -> RowKey | None
    coordinate = Coordinate(index, 0)
     if table.is_valid_coordinate(coordinate):
        return table.coordinate_to_cell_key(coordinate).row_key
    return None

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JOJ0
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JOJ0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants