I expected this to work:
using DataFrames,PooledArrays
d = DataFrame(:x=>PooledArray([1,2,3]))
isa(vcat(d,d).x,PooledArray) # false
But the vcat
casts it to Vector
.
even though:
isa(vcat(d.x,d.x),PooledArray) #true
works as I expected. Any insights how I can keep the type?
@Bogumił Kamiński might know
Related to this he just opened https://github.com/JuliaData/PooledArrays.jl/issues/88 and https://github.com/JuliaData/DataFrames.jl/issues/3432.
thanks! I'll probably recast them then for now :)
Last updated: Nov 22 2024 at 04:41 UTC