DataFrames.jl
DataFrames.jl copied to clipboard
Could a DataFrameRow be shown as a record rather than as a table?
Currently a single row is still printed as a "DataFrame" - i.e. a 1-row table, with truncated columns. I wonder if it would be more natural to show a single row (a "record") vertically, with one row per field? This would make it much easier to inspect a single record that has a lot of fields/columns.
We could, but it would probably require a completely separate code path for this.
@ronisbr - any opinion on this?
Note, this would be similar to dplyr
's glimpse
function which I quite like...
This also seems nice.
Tables.jl has a row type which prints like a named tuple. We could change upstream and copy their printing as well.
Yes, if anyone wants to improve AbstractRow
/AbstractColumns
default printing, I would love a PR: https://github.com/JuliaData/Tables.jl/blob/bdde6d343a9717cf78c7b442d142a9699688dbdc/src/Tables.jl#L193