ronisbr / PrettyTables.jl

Print data in formatted tables.
MIT License
391 stars 38 forks source link

`header` is ignored for `Dict` #212

Closed laborg closed 11 months ago

laborg commented 12 months ago

Hi,

I assumed that the header should show up when printing a Dict. Is this to be expected?

julia> pretty_table(Dict(:a=>1,:b=>2),header=(["ColumnK","ColumV"]))
┌────────┬────────┐
│   Keys │ Values │
│ Symbol │  Int64 │
├────────┼────────┤
│      a │      1 │
│      b │      2 │
└────────┴────────┘

PrettyTables v2.2.6

ronisbr commented 11 months ago

Oops :) Thanks for the report! Should be fixed by now (when a new version is tagged).

laborg commented 11 months ago

wow, that was quick. thanks!