Tag Info

New answers tagged

2

Sometimes the values for the new column might not be straightforwardly computed row by row. For example: newcol = RotateLeft @ Normal[ds[All, (#col1 + #col2 &)]] (* {7, 11, 3} *) newcol2 = RandomSample[newcol] (* {3, 11, 7} *) In this case you can use the Association form of the Dataset. Creating a Dataset with an extra column can be done like this: ...



Top 50 recent answers are included