You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using ReadStatTables, DataFrames
lbls1 =Dict(1=>"a", 2=>"b");
x =LabeledArray([0, 1, 2], lbls1)
df =DataFrame(; x)
[x; x]
[df; df] # ERROR: MethodError: Cannot `convert` an object of type Int64 to an object of type LabeledValue{Int64, Int64}
I am not sure if that is due to a bug in DataFrames or ReadStatTables, though.
The text was updated successfully, but these errors were encountered:
greimel
changed the title
Cannot vcat two DataFrames with ReadStatTables.LabeledArrays
Cannot vcat DataFrames with ReadStatTables.LabeledArrays
Jun 26, 2023
It is a problem with ReadStatTables.jl, because it should define DataAPI.defaultarray method and it does not. The reason is that the eltypeLabelledValue needs to be stored in LabelledVector and package should signal this.
I am not sure if that is due to a bug in DataFrames or ReadStatTables, though.
The text was updated successfully, but these errors were encountered: