Closed bkamins closed 2 years ago
Hi @bkamins !
I just cannot reproduce this bug:
julia> show(stdout, df, crop=:both, display_size=(1, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
⋮ │ ⋮ ⋮ ⋮
100 rows omitted
julia> show(stdout, df, crop=:both, display_size=(2, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
⋮ │ ⋮ ⋮ ⋮
100 rows omitted
julia> show(stdout, df, crop=:both, display_size=(3, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
⋮ │ ⋮ ⋮ ⋮
100 rows omitted
julia> show(stdout, df, crop=:both, display_size=(4, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
⋮ │ ⋮ ⋮ ⋮
100 rows omitted
julia> show(stdout, df, crop=:both, display_size=(5, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
⋮ │ ⋮ ⋮ ⋮
100 rows omitted
julia> show(stdout, df, crop=:both, display_size=(6, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
⋮ │ ⋮ ⋮ ⋮
100 rows omitted
julia> show(stdout, df, crop=:both, display_size=(7, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
⋮ │ ⋮ ⋮ ⋮
100 rows omitted
julia> show(stdout, df, crop=:both, display_size=(8, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
⋮ │ ⋮ ⋮ ⋮
100 rows omitted
julia> show(stdout, df, crop=:both, display_size=(9, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
─────┼─────────────────────────────────
⋮ │ ⋮ ⋮ ⋮
100 rows omitted
julia> show(stdout, df, crop=:both, display_size=(10, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
─────┼─────────────────────────────────
1 │ 0.218312 0.702555 0.340554
⋮ │ ⋮ ⋮ ⋮
99 rows omitted
julia> show(stdout, df, crop=:both, display_size=(11, 100))
100×3 DataFrame
Row │ x1 x2 x3
│ Float64 Float64 Float64
─────┼─────────────────────────────────
1 │ 0.218312 0.702555 0.340554
⋮ │ ⋮ ⋮ ⋮
100 │ 0.690223 0.23945 0.106599
98 rows omitted
Are you sure you are using PrettyTables v2.1.1? I fixed a printing bug similar to this in the last version.
Ah - I was on v2.1.0 - all is good. Thank you!
@ronisbr can you please explain me this behavior?
What I do not understand is why sometimes when I increase height by 1 I get the same number of lines printed. How is exactly first element of
display_size
taken into account when calculating number of lines that should be actually printed?