I ended up using the approach taken here:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Creating new dataframe column! | 3 | 335 | April 21, 2021 | |
| Easier way to split-apply-combine in DataFrames.jl | 5 | 1152 | December 14, 2020 | |
| [Query.jl] Way to map many variables to a single function | 0 | 464 | March 7, 2021 | |
| Why doesn't this work with DataFrames.jl `combine`? | 13 | 1036 | August 3, 2021 | |
| DataFrame groups as an argument of a function | 15 | 1033 | November 23, 2021 |