Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right-align numbers #90

Open
jariji opened this issue Mar 21, 2022 · 0 comments
Open

Right-align numbers #90

jariji opened this issue Mar 21, 2022 · 0 comments

Comments

@jariji
Copy link

jariji commented Mar 21, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant