Skip to content

Add array as new column #253

Answered by jheer
landge asked this question in Q&A
Dec 15, 2021 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Yes, take a look at the table.assign() method. For example:

const newTable = oldTable.assign({ column_name: [1, 2, 3] })

Of course, the new column lengths must match the old columns.

Replies: 3 comments 1 reply

Comment options

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

Answer selected by jheer
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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