-
Hi! Is it possible to add an array (or adequate other data structure) as a new column to an existing table? In python/pandas you could do something like this:
This would give you the following table:
How could this be done with arquero? Or do you have to use join to accomplish this? Somehow I feel that I am missing something essential 😕 /Till |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Yes, take a look at the const newTable = oldTable.assign({ column_name: [1, 2, 3] }) Of course, the new column lengths must match the old columns. |
Beta Was this translation helpful? Give feedback.
-
Thank you !! 🙏🏽 |
Beta Was this translation helpful? Give feedback.
-
This worked for me in Replit to add a column of indices to a table |
Beta Was this translation helpful? Give feedback.
Yes, take a look at the
table.assign()
method. For example:Of course, the new column lengths must match the old columns.