Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Commit

Permalink
Improve slightly the printing of large Data.Tables
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Apr 30, 2016
1 parent c3ecb82 commit 8ee82fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/DataStreams.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,13 @@ function Base.show{T}(io::IO, x::Table{T})
eltyp = T == Vector{NullableVector} ? "" : "{$T}"
println(io, "Data.Table$eltyp:")
showcompact(io, x.schema)
show(io, x.data)
println(); println(io, "\tColumn Data:")
types = Data.types(x)
for col = 1:min(MAX_NUM_OF_COLS_TO_PRINT,size(x,2))
print(io, "\t"); showcompact(io, Data.column(x, col, types[col]).values)
println()
end
MAX_NUM_OF_COLS_TO_PRINT < size(x,2) && println(io, "\t...")
end

using NullableArrays
Expand Down

0 comments on commit 8ee82fa

Please sign in to comment.