I have a DataFrame which I want to process with the help of a @chain. How can store intermediate results?
using DataFrames, Chain
df = DataFrame(a = [1,1,2,2,2], b = [1,2,3,4,5])
5×2 DataFrame
Row │ a b
│ Int64 Int64
─────┼──────────────
1 │ 1 1
2 │ 1 2
3 │ 2 3
4 │ 2 4
5 │ 2 5
@chain df begin do stuff save some intermediate result do more stuff end