How do I make linebreaks in the header of a pretty_table
? Here is a MEW of my attempt:
julia> using PrettyTables
julia> pretty_table(linebreaks=true,
body_hlines = [1, 2, 3],
header = ([" " "Actual\npositives" "Actual\nnegatives"],),
[
"Prediced\npositives" 1 2
"Prediced\nnegatives" 3 4
" " 5 6
]
)
┌───────────┬───────────────────┬───────────────────┐
│ │ Actual\npositives │ Actual\nnegatives │
├───────────┼───────────────────┼───────────────────┤
│ Prediced │ 1 │ 2 │
│ positives │ │ │
├───────────┼───────────────────┼───────────────────┤
│ Prediced │ 3 │ 4 │
│ negatives │ │ │
├───────────┼───────────────────┼───────────────────┤
│ │ 5 │ 6 │
└───────────┴───────────────────┴───────────────────┘