You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following on from #137, this code (with the variable defined, but an extra line) makes slow compilation.
# Returns a table with the following headers:
# `P20,P50,P80,σ`
def sim-characteristics Table (col:Str) {
let {len} $len
| let { fold 0 + { \ $row | get $col} | / $len } $mean
| Table 'mean'
| append-row $mean
}
# Construct the Saleable by year table.
open input-constrained.csv | grp-by {get:Str Period | take 4} | map value { grp Run
| map value fold 0 + $row.SaleableTonnesMprd | ren value Saleable }
| map value sim-characteristics Saleable
| fold {Table} + { \ $row | get value | append --Year $row.key }
| save saleable-table.csv
Typing $row.key:Str fixes the issue.
Expected Behaviour
Reproduction Steps
Additional information
The text was updated successfully, but these errors were encountered:
Current Behaviour
Following on from #137, this code (with the variable defined, but an extra line) makes slow compilation.
Typing
$row.key:Str
fixes the issue.Expected Behaviour
Reproduction Steps
Additional information
The text was updated successfully, but these errors were encountered: