I'd like to transform this dataset:
Dataset[{
<|"Name" -> "Steven","Born" -> 1980, "Year" -> 2017, "Score" -> 115|>,
<|"Name" -> "Steven", "Born" -> 1980, "Year" -> 2018, "Score" -> 230|>,
<|"Name" -> "Joe", "Born" -> 1981, "Year" -> 2017, "Score" -> 70|>,
<|"Name" -> "Joe", "Born" -> 1981, "Year" -> 2018, "Score" -> 300|>
}]
into this dataset:
Dataset[{
<|"Name" -> "Steven", "Born" -> 1980, "Score_2017" -> 115, "Score_2018" -> 230|>,
<|"Name" -> "Joe", "Born" -> 1981, "Score_2017" -> 70, "Score_2018" -> 300|>
}]
In R's tidyr this operation is called pivot_wider
.
Any pointers?
I know that it requires a GroupBy["Name"]