LoadError:类型DataFrame没有字段x

时间:2017-11-27 14:19:45

标签: julia pmap

我已将完美正常的React转换为map

pmap

除了它似乎没有任何并行性这一事实 - 但我会承认这些组大多数都是小的 - 我得到以下错误

squashed_groups = pmap(group ->
                       reduce(squash,
                              DataFrame(eltypes(o), names(o), 0),
                              eachrow(group)
                             ),
                       groups)

我无法弄清楚这意味着什么。我甚至检查过哪些地方可以在某处使用ERROR: LoadError: type DataFrame has no field x Stacktrace: [1] copy!(::Array{DataFrames.AbstractDataFrame,1}, ::Base.Generator{Array{DataFrames.AbstractDataFrame,1},DataFrames.##34#35{Base.##569#571}}) at ./abstractarray.jl:572 [2] _collect(::Type{DataFrames.AbstractDataFrame}, ::Base.Generator{Array{DataFrames.AbstractDataFrame,1},DataFrames.##34#35{Base.##569#571}}, ::Base.HasShape) at ./array.jl:363 [3] map(::Base.##569#571, ::DataFrames.GroupApplied) at /Users/morpheu5/.julia/v0.6/DataFrames/src/groupeddataframe/grouping.jl:184 [4] maptwice(::Function, ::Channel{Any}, ::Array{Any,1}, ::DataFrames.GroupedDataFrame, ::Vararg{DataFrames.GroupedDataFrame,N} where N) at ./asyncmap.jl:188 [5] wrap_n_exec_twice(::Channel{Any}, ::Array{Any,1}, ::Base.Distributed.##204#207{WorkerPool}, ::Function, ::DataFrames.GroupedDataFrame, ::Vararg{DataFrames.GroupedDataFrame,N} where N) at ./asyncmap.jl:154 [6] #async_usemap#553(::Function, ::Void, ::Function, ::##9#10, ::DataFrames.GroupedDataFrame, ::Vararg{DataFrames.GroupedDataFrame,N} where N) at ./asyncmap.jl:103 [7] (::Base.#kw##async_usemap)(::Array{Any,1}, ::Base.#async_usemap, ::Function, ::DataFrames.GroupedDataFrame, ::Vararg{DataFrames.GroupedDataFrame,N} where N) at ./<missing>:0 [8] (::Base.#kw##asyncmap)(::Array{Any,1}, ::Base.#asyncmap, ::Function, ::DataFrames.GroupedDataFrame) at ./<missing>:0 [9] #pmap#203(::Bool, ::Int64, ::Void, ::Array{Any,1}, ::Void, ::Function, ::WorkerPool, ::Function, ::DataFrames.GroupedDataFrame) at ./distributed/pmap.jl:126 [10] pmap(::WorkerPool, ::Function, ::DataFrames.GroupedDataFrame) at ./distributed/pmap.jl:101 [11] #pmap#213(::Array{Any,1}, ::Function, ::Function, ::DataFrames.GroupedDataFrame) at ./distributed/pmap.jl:156 [12] pmap(::Function, ::DataFrames.GroupedDataFrame) at ./distributed/pmap.jl:156 [13] include_from_node1(::String) at ./loading.jl:569 [14] include(::String) at ./sysimg.jl:14 [15] process_options(::Base.JLOptions) at ./client.jl:305 [16] _start() at ./client.jl:371 并更改了这些地方,但错误信息并没有改变。内部简化有点复杂,但使用非并行x - 如同,它会产生预期的结果。

这是我阅读所有文档并且没有理解它们的情况,或者这是朱莉娅某处的错误?我在x86_64-apple-darwin13.4.0上运行0.6.0。

0 个答案:

没有答案