From aeeb4138c5fdde60a78eea38d563a0d33f2bf437 Mon Sep 17 00:00:00 2001 From: Dave Kleinschmidt Date: Thu, 23 Jun 2022 10:42:48 -0400 Subject: [PATCH] add README note on reverse tables-compat (table from KeyedArray) --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d3eb457..51b7593 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,11 @@ while `A.keys isa Tuple` for matrices & higher. But `axiskeys(A)` always returns with `collect(keys(nt)) == Symbol.(axiskeys(V),1)` * The [Tables.jl](https://github.com/JuliaData/Tables.jl) interface is supported, - with `wrapdims(df, :val, :x, :y)` creating a matrix from 3 columns. + with `wrapdims(df, :val, :x, :y)` creating a matrix from 3 columns. Both row- + and column-access of `KeyedArray`s is supported, and constructing a table from + a `KeyedArray` (with any Tables.jl-compatible constructor, like + `Tables.columns`, `Tables.rows`, `DataFrames.DataFrame`, etc.) will produce a + table with one column per axis and values in a `:value` column. * Some [StatsBase.jl](https://github.com/JuliaStats/StatsBase.jl) and [CovarianceEstimation.jl](https://github.com/mateuszbaran/CovarianceEstimation.jl) functions