Created
May 17, 2023 12:16
-
-
Save seb231/f5cda6a0a5359fa9a1a7fadf02253b80 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(tc/concat | |
(-> designation-capacities | |
(tc/drop-rows #(#{"St Teresas/Moorgate/Blackrod Church" "Green Fold"} (:school %)))) | |
(-> designation-capacities | |
(tc/select-rows #(#{"St Teresas/Moorgate/Blackrod Church" "Green Fold"} (:school %))) | |
(tc/group-by :calendar-year) | |
(tc/aggregate {:capacity #(reduce + (% :capacity))}) | |
(tc/rename-columns {:$group-name :calendar-year}) | |
(tc/add-columns {:school "Green Fold/St Teresas/Moorgate/Blackrod Church" | |
:setting "MSS/RP" | |
:phase "primary" | |
:designation "ASD" | |
:setting-phase "Primary age ASD"}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment