Skip to content
Discussion options

You must be logged in to vote

Oh, I confused ui.table with ui.aggrid. Here you go:

df = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]})
table = ui.table.from_pandas(df)
table.columns[0]['sortable'] = True

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BlackF0rest
Comment options

@falkoschindler
Comment options

Answer selected by BlackF0rest
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