Skip to content

Tables.columnnames(Z) after Z = Tables.rowtable(X) or Z = Tables.dictrowtable(X) does not return proper column names #338

@EssamWisam

Description

@EssamWisam

For instance,

X = DataFrame(rand(Float64, 4, 2), :auto)

X_row = Tables.rowtable(X)
println(Tables.columnnames(X_row))

X_dict_row = Tables.dictrowtable(X)
println(Tables.columnnames(X_dict_row))

X_col = Tables.columntable(X)
println(Tables.columnnames(X_col))

yields

()
(:names, :types, :values)
(:x1, :x2)

I wonder if anything is wrong with this, I expected all to return (:x1, :x2). It crossed my mind that this could be an issue due to the source being a dataframe but I also tried a matrix table for X.

Thanks for this wonderful package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions