From f62a3b2ab0cea2608a7a310d25565cd866a6651f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Tue, 15 Mar 2022 15:46:15 +0100 Subject: [PATCH] add example of AsTable --- ch14.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ch14.jl b/ch14.jl index 50a0e2c..d3bfad0 100644 --- a/ch14.jl +++ b/ch14.jl @@ -131,6 +131,10 @@ df all(x -> x.status == "OK", df.data) +small_df = DataFrame(x=[(a=1, b=2), (a=3, b=4), (a=5, b=6)]) +transform(small_df, :x => identity => AsTable) +transform(small_df, :x => AsTable) + df2 = select(df, :K, :data => ByRow(x -> x.value) => AsTable) using Plots