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

An interface for tables in Julia

Results 49 Tables.jl issues
Sort by recently updated
recently updated
newest added

I think - as in other places - we should only define a method for a type, and use a default fallback for the value. @quinnj Was there some specific...

I frequently want to use `map` to make a table, and do ``` t = map(1:1000) do _ x = rand() y = rand() (; x, y) end |> Tables.columntable...

as per comment https://github.com/JuliaData/Tables.jl/pull/278#issuecomment-1132706343 @quinnj @bkamins @nalimilan @ablaom @ToucheSir

```julia julia> using Tables julia> struct SSS stuff end julia> Tables.dictcolumntable([(; a=SSS(1)), (; b=2)]).a 2-element Vector{Union{Missing, SSS}}: SSS(1) #undef julia> Tables.columns(Tables.dictrowtable([(; a=SSS(1)), (; b=2)])) Tables.CopiedColumns{NamedTuple{(:a, :b), Tuple{Vector{Union{Missing, SSS}}, Vector{Union{Missing, Int64}}}}}...

I noticed that there is a `rowcount`, but not a `columncount` and that `length(columnnames(cols))` was used in the codebase to count the number of columns (because that is the fastest?)....

This has been requested/discussed a number of times; here's one idea of what this could look like. Basically the same as `Tables.rows`, but `Tables.indexablerows` would require an "indexable" object of...

This is not currently overloaded, ie, falls back to columntable. In MLJ (and elsewhere) core models operate on matrices. An MLJ interface for a model accepts a table `X`, converts...

@quinnj, the idea here would be that https://github.com/JuliaData/DataFrames.jl/blob/b1fdb7621fa38c381dad928317ec1de562d09e71/src/other/tables.jl#L93 could be rewritten as ```julia IteratorInterfaceExtensions.getiterator(df::AbstractDataFrame) = Tables.datavaluerows(df) ``` But I'm not entirely sure this is right :) I think this PR...

Since `@pure` is a no-op after https://github.com/JuliaLang/julia/pull/44776. See the [docs](https://docs.julialang.org/en/v1.9-dev/base/base/#Base.@assume_effects) for `@assume_effects`. Can also use `Base.@infer_effects` to see if it’s needed (https://github.com/JuliaLang/julia/pull/44785).

I have encountered two thorny issues which have arisen because Tables.jl natively implements its interface for certain kinds of tuples. The conflicts arising are not quite the same, which suggests...