which kind of takes over the screen and is hard to read / not useful. With a super simple show method like
function Base.show(io::IO, table::Arrow.Table; max_cols = 20)
nrows = length(Tables.getcolumn(table, 1))
cols = Tables.columnnames(table)
ncols = length(cols)
print(io, "$(typeof(table)) with $(nrows) rows and $(ncols) columns:")
for col in first(cols, max_cols)
print(io, "\n ", col, " (", Tables.columntype(table, col), ")")
end
if ncols > max_cols
print(io, "\n ⋮")
end
end
I see though there is already a show method to print Arrow.Table's like NamedTuples. I wonder if maybe seeing the values is easier for testing and things like that.
using the example from https://github.com/beacon-biosignals/Onda.jl/blob/b8400b011cafbdef2a9909367f8d9c56ef1aacf4/examples/tour.jl#L72, if we read in the resulting Arrow table and let it print to the REPL, we get
which kind of takes over the screen and is hard to read / not useful. With a super simple
show
method likewe instead get
which is at least simple and readable, or
I see though there is already a
show
method to printArrow.Table
's like NamedTuples. I wonder if maybe seeing the values is easier for testing and things like that.