Skip to content

Table sort unexpected behaviour #2111

Answered by mturoci
shamilh2o asked this question in Q&A
Discussion options

You must be logged in to vote

Table rows must be unique so instead of using name col as key, go for index for example:

    return [
        ui.table_row(
            name=str(index),
            cells=[
                str(row['name']),
                str(row['subject']),
                str(row['marks']),
            ]
        ) for index, row in df.iterrows()
    ]

Replies: 1 comment 1 reply

Comment options

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

Answer selected by shamilh2o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants