What I am trying to do is to add an id column at the left side of my data set.
This is the data set I am working with. I Have three columns and I want to add a new column on the left side with the column tag ID with the following values: Id={1,2,3,4,5,6}.
Dataset@
{
<|"Team name" -> "Chealse", "GF" -> 23, "GA" -> 12|>,
<|"Team name" -> "Arsenal", "GF" -> 30, "GA" -> 13|>,
<|"Team name" -> "Burnley", "GF" -> 33, "GA" -> 15|>,
<|"Team name" -> "Everton", "GF" -> 53, "GA" -> 11|>,
<|"Team name" -> "Watford", "GF" -> 45, "GA" -> 9|>,
<|"Team name" -> "Brighton", "GF" -> 24, "GA" -> 7|>
}



dsthenn = 1; ds = ds[All, Prepend[#, "ID" -> n++] &]– Bob Hanlon May 31 '20 at 05:55