JuliaData / Feather.jl

Read and write feather files in pure Julia
https://juliadata.github.io/Feather.jl/stable
Other
109 stars 27 forks source link

Method Error reading test/newdata #59

Closed Nosferican closed 6 years ago

Nosferican commented 7 years ago
using Feather
using DataFrames
df = Feather.read(joinpath(Pkg.dir("Feather"), "test/newdata/iris.feather"), use_mmap = false)
head(df)

gives

MethodError: no method matching CategoricalArrays.CategoricalArray{String,1,Int32,V,C,U}
where U where C where V(::Array{Int32,1}, ::CategoricalArrays.CategoricalPool{String,Int32,
CategoricalArrays.CategoricalString{Int32}})
Feather                       0.2.5+             master
DataFrames                    0.10.1+            master
DataStreams                   0.2.1
CategoricalArrays             0.2.3+             master
nalimilan commented 6 years ago

I guess you're using CategoricalArrays master? Try with the latest release instead.

Nosferican commented 6 years ago

That did it. Guess the right combination for now is Feather and DataFrames checkout and DataStreams and CategoricalArrays free. Thanks!

nalimilan commented 6 years ago

Though you're right that one of the packages needs to be updated to the recent CategoricalArrays changes.

quinnj commented 6 years ago

I just pushed updates to fix this.