Creating columns programmatically via code. #4866
Unanswered
akshit-sharma
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to react and tanstack/table, so I might be missing something.
I want to display table generating via pandas directly in a react web app.
Using specific settings one can get the schema for the generated files separately (file1 and file2).
Examples use type Person which contains the same information as
columnName: columnType
.I am wondering if I can use the
data['schema']['fields']
information generatecolumnHelper
and the correspondingdata['data']
to fill the values in the table (where data is the content infile1
orfile2
).As The type of each column is also provided by
type
attribute of eachfield
in the json file.In short, I want to dynamically/programmatically create the columns in the code so that if I change the table generated from pandas, the web app automatically adapts it and shows the table without change in react app.
Beta Was this translation helpful? Give feedback.
All reactions