AxisTables.jl

Tables with AxisIndices backend
Author Tokazama
Popularity
0 Stars
Updated Last
1 Year Ago
Started In
August 2020

AxisTables

Lifecycle Build Status stable-docs dev-docs

Construction

Matrix to Table

julia> using AxisTables

julia> t = Table(ones(2,2), col_keys=[:A, :B])
Table
┌─────┬─────┐
│   A │   B │
├─────┼─────┤
│ 1.01.0 │
│ 1.01.0 │
└─────┴─────┘

Key Word Construction

julia> using AxisTables

julia> t = Table(A = 1:4, B = ["M", "F", "F", "M"])
Table
┌───┬───┐
│ A │ B │
├───┼───┤
│ 1 │ M │
│ 2 │ F │
│ 3 │ F │
│ 4 │ M │
└───┴───┘

Property Name Assignment

julia> t = Table();

julia> t.A = 1:8;

julia> t.B = ["M", "F", "F", "M", "F", "M", "M", "F"];

julia> t
Table
┌───┬───┐
│ A │ B │
├───┼───┤
│ 1 │ M │
│ 2 │ F │
│ 3 │ F │
│ 4 │ M │
│ 5 │ F │
│ 6 │ M │
│ 7 │ M │
│ 8 │ F │
└───┴───┘

Adding Rows

TODO

Used By Packages

No packages found.