JuliaData / TypedTables.jl

Simple, fast, column-based storage for data analysis in Julia
Other
147 stars 25 forks source link

Right-align numbers #90

Open jariji opened 2 years ago

jariji commented 2 years ago

I like that DataFrames.jl right-aligns numeric columns

Table with 2 columns and 100 rows:
      n      sum
    ┌──────────────
 1  │ 1      1
 2  │ 8      9
 3  │ 27     36
 4  │ 64     100
 5  │ 125    225
 6  │ 216    441
 7  │ 343    784
 8  │ 512    1296
 9  │ 729    2025
 10 │ 1000   3025
 11 │ 1331   4356
 12 │ 1728   6084
 13 │ 2197   8281
 14 │ 2744   11025

100×2 DataFrame
 Row │ n        sum      
     │ Int64    Int64    
─────┼───────────────────
   1 │       1         1
   2 │       8         9
   3 │      27        36
   4 │      64       100
   5 │     125       225
   6 │     216       441
   7 │     343       784
   8 │     512      1296