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

hdr_override in join doesn't affect invariant_cols. #22

Open
abelsiqueira opened this issue Mar 7, 2019 · 2 comments
Open

hdr_override in join doesn't affect invariant_cols. #22

abelsiqueira opened this issue Mar 7, 2019 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@abelsiqueira
Copy link
Member

hdr_override = Dict(:name => "Name", :f => "f(x)", :t => "Time")                            
df = join(stats, [:f, :t], invariant_cols=[:name], hdr_override=hdr_override)               
markdown_table(stdout, df) 
|    id |    name | f(x)_alpha | Time_alpha | f(x)_beta | Time_beta | f(x)_gamma | Time_gamma |
|-------|---------|------------|------------|-----------|-----------|------------|------------|
|     1 | prob001 |   -6.9e-01 |    6.2e+01 |  -1.1e+00 |   1.8e+02 |    6.3e-02 |    3.3e+01 |
|     2 | prob002 |   -7.6e-01 |    3.5e+02 |   8.2e-01 |   8.0e+01 |    1.2e-01 |    6.9e+02 |
|     3 | prob003 |    4.0e-01 |    7.7e+02 |   1.5e-01 |   6.8e+02 |    2.7e+00 |    8.4e+02 |
|     4 | prob004 |    8.1e-01 |    4.3e+01 |  -3.3e-01 |   9.3e+02 |   -6.9e-01 |    1.9e+02 |
|     5 | prob005 |   -3.5e-01 |    2.7e+02 |   1.4e+00 |   9.7e+02 |   -5.5e-02 |    1.6e+02 |
|     6 | prob006 |   -1.9e-01 |    6.7e+01 |  -4.4e-01 |   6.5e+02 |    4.2e-01 |    9.0e+02 |
|     7 | prob007 |   -1.6e+00 |    1.6e+02 |   1.1e+00 |   6.0e+02 |   -1.4e+00 |    9.5e+01 |
|     8 | prob008 |   -2.5e+00 |    6.1e+02 |  -2.5e-01 |   4.8e+02 |   -4.5e-01 |    7.8e+02 |
|     9 | prob009 |    2.3e+00 |    1.4e+02 |   2.9e-01 |   6.3e+01 |   -8.8e-01 |    8.7e+02 |
|    10 | prob010 |    2.2e-01 |    8.4e+02 |  -3.5e+00 |   4.7e+02 |    1.1e+00 |    8.4e+02 |

The column name should be Name.

@abelsiqueira abelsiqueira added bug Something isn't working good first issue Good for newcomers labels Mar 7, 2019
@Jay-sanjay
Copy link

@abelsiqueira sir is it some logical error, or just a typo error

@abelsiqueira
Copy link
Member Author

Logical. But it's from 4 years ago, I don't know if it is still broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants