Step 1 of 3
Add calculated profit and margin fields with mlr put
/workspace/orders.csv tracks order revenue and cost. Use mlr --csv put to add profit and margin_pct, saving output to enriched.csv:
bash
mlr --csv put '$profit = $rev - $cost; $margin_pct = round(100 * $profit / $rev)' orders.csv > enriched.csv && cat enriched.csvClick Check Step to continue.