Sortable Column with Pandas Dataframe #2823
Answered
by
falkoschindler
BlackF0rest
asked this question in
Q&A
-
QuestionHi, |
Beta Was this translation helpful? Give feedback.
Answered by
falkoschindler
Apr 5, 2024
Replies: 1 comment 2 replies
-
Hi @BlackF0rest, You can manipulate the column definitions after instantiating the AG Grid element like this: df = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]})
aggrid = ui.aggrid.from_pandas(df)
aggrid.options['columnDefs'][0]['sortable'] = True |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, I confused
ui.table
withui.aggrid
. Here you go: