DataSkimmer.jl icon indicating copy to clipboard operation
DataSkimmer.jl copied to clipboard

The output is cut off when there are many columns

Open Hasnep opened this issue 3 years ago • 1 comments

Example:

using DataSkimmer
using DataFrames
df = DataFrame(Dict([Symbol(k) => 1:10 for k in 'a':'z'])...)
skim(df)

Output:

┌─────────────────────┬───────────┐
│                Type │ DataFrame │
│             N. rows │        10 │
│             N. cols │        26 │
│     N. numeric cols │        26 │
│ N. categorical cols │         0 │
│    N. datetime cols │         0 │
└─────────────────────┴───────────┘

26 numeric columns
┌──────┬───────┬──────────┬──────────┬──────┬──────┬──────┬──────┬───────┬───────┐
│ Name │  Type │ Missings │ Complete │ Mean │ Std. │ Min. │ Med. │  Max. │ Hist. │
├──────┼───────┼──────────┼──────────┼──────┼──────┼──────┼──────┼───────┼───────┤
│    o │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    b │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    p │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    n │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    j │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    e │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    c │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    h │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    l │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    w │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    x │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    d │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    k │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    s │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│    v │ Int64 │        0 │   100.0% │ 5.50 │ 3.03 │ 1.00 │ 5.50 │ 10.00 │ ▂▂▂▂▂ │
│  ⋮   │   ⋮   │    ⋮     │    ⋮     │  ⋮   │  ⋮   │  ⋮   │  ⋮   │   ⋮   │   ⋮   │
└──────┴───────┴──────────┴──────────┴──────┴──────┴──────┴──────┴───────┴───────┘
                                                                   11 rows omitted

Hasnep avatar Apr 13 '21 20:04 Hasnep

In your source, DataSkimmer.jl

change line 5 to: using PrettyTables

on line 10 add: @ptconf crop = :none

fixed it for me.

George9000 avatar Jun 16 '21 23:06 George9000