New answers tagged

1

Sometimes, one cannot use #col1, for example, col1_name data = AssociationThread[{"col1", "col2_name"}, #] & /@ {{1, 2}, {3, 4}}; dataSet = Dataset@data divide[x_, y_] := If[y == 0, 0, Divide[x, y]] // N rate["new_column"] = divide[#["col1"], #["col2_name"]] &; dataSetFinal = dataSet[All, Association[{"col1" -> "col1", "col2_name" -> ...



Top 50 recent answers are included