Andy Ferris

Results 376 comments of Andy Ferris

> I thought `Table{NamedTuple{(), Tuple{}}}` would be equivalent to `Vector{Union{}}` ~~It is, exactly right,~~ Sorry I misread this. They are similar. Both can have a length greater than zero. I...

Maybe we should avoid `Union{}`. ``` julia> struct B a::Union{} b::Union{} B() = new() end julia> B() B(#undef, #undef) julia> sizeof(B()) 16 julia> struct C a::Nothing b::Nothing C() = new()...

Sorry, @tkf, I've been following along but haven't been able to reply yet. > A simple question is: how do you write a function for materializing a Table from an...

Regarding your two options - we need to support the case where the output container is empty with full type predictability. Are you falling back on inference whenever `xs` is...

Ok. So what do you do when the output really is empty?

> on a related note, ndims for DataFrames are 2 while for TypedTables it's 1. Kind of. In TypedTables a `Table` is an `AbstractArray` of rows. Usually it is a...

Hmm interesting. It's generally assumed the columns don't alias each other... so I suspect you'd get the same thing with: ```julia using TypedTables v = [1,2,3] data = Table(x=v, y=v)...

(obviously, to fix your example you would do `data.y = copy(data.x)` or else use `filter` instead of `filter!`)

Out of curiosity… should this be done for the Tables.jl interface in general?

> I don't know RecipesBase.jl well enough to know what kind of dependency it is It seems to be a single ~500-line file. Like Tables.jl it's mostly there to provide...