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

Allow column unioning in Tables.columns

Open bkamins opened this issue 2 years ago • 3 comments

Following the discussion in https://github.com/JuliaData/DataFrames.jl/pull/3372#discussion_r1335238316 It would make sense to add cols kwarg to Tables.columns.

Let us discuss here if it would make sense, because maybe it is better to have a column-oriented equivalent of DictRowTable as a separate object.

CC @nalimilan @quinnj

bkamins avatar Sep 25 '23 20:09 bkamins

@nalimilan - I have realized that we have Tables.dictcolumntable to accompany Tables.dictrowtable so this issue can be closed. I will update DataFrames.jl accordingly.

bkamins avatar Oct 01 '23 18:10 bkamins

Good. It would still make sense to allow opting into a stricter behavior than the default (which I find dangerous) using cols=:setequal or cols=:orderequal. But this is lower priority.

nalimilan avatar Oct 03 '23 20:10 nalimilan

Yes - You mean something like Tables.columns(table, cols=:orderequal)? @quinnj - is it clear what we have in mind here?

bkamins avatar Oct 05 '23 20:10 bkamins