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
I'm having trouble creating a ModelFrame in julia-0.4.0-dev+5194. I'm using the latest master of both DataFrames and DataArrays
Below is a toy example reproducing the error
using DataFrames
df = DataFrame()
df[:counts] = 50*rand(300)
df[:tlabel] = rand(1:8,300)
df[:dlabel] = rand(1:8,300)
f = counts ~ tlabel + dlabel
mf = ModelFrame(f, df)
ERROR: DimensionMismatch("index 1 has size (300,), but size(A) = ()")
in checksize at multidimensional.jl:283
in anonymous at /Users/roger/.julia/v0.4/Compat/src/ngenerate.jl:128
in getindex at /Users/roger/.julia/v0.4/DataArrays/src/indexing.jl:159
in getindex at /Users/roger/.julia/v0.4/DataFrames/src/dataframe/dataframe.jl:265
in na_omit at /Users/roger/.julia/v0.4/DataFrames/src/statsmodels/formula.jl:223
in call at /Users/roger/.julia/v0.4/DataFrames/src/statsmodels/formula.jl:241
in call at /Users/roger/.julia/v0.4/DataFrames/src/statsmodels/formula.jl:247
julia> Pkg.status("DataFrames")
DataFrames 0.6.6+ master
Pkg.status("DataArrays")
DataArrays 0.2.15+ master
The text was updated successfully, but these errors were encountered:
julia> data[:,1]
ERROR: DimensionMismatch("index 1 has size (3,), but size(A) = ()")
in checksize at multidimensional.jl:287
in anonymous at /Users/gragusa/.julia/v0.4/Compat/src/ngenerate.jl:128
in getindex at /Users/gragusa/.julia/v0.4/DataArrays/src/indexing.jl:159
in getindex at /Users/gragusa/.julia/v0.4/DataFrames/src/dataframe/dataframe.jl:259
I'm having trouble creating a ModelFrame in julia-0.4.0-dev+5194. I'm using the latest master of both DataFrames and DataArrays
Below is a toy example reproducing the error
using DataFrames
df = DataFrame()
df[:counts] = 50*rand(300)
df[:tlabel] = rand(1:8,300)
df[:dlabel] = rand(1:8,300)
f = counts ~ tlabel + dlabel
mf = ModelFrame(f, df)
ERROR: DimensionMismatch("index 1 has size (300,), but size(A) = ()")
in checksize at multidimensional.jl:283
in anonymous at /Users/roger/.julia/v0.4/Compat/src/ngenerate.jl:128
in getindex at /Users/roger/.julia/v0.4/DataArrays/src/indexing.jl:159
in getindex at /Users/roger/.julia/v0.4/DataFrames/src/dataframe/dataframe.jl:265
in na_omit at /Users/roger/.julia/v0.4/DataFrames/src/statsmodels/formula.jl:223
in call at /Users/roger/.julia/v0.4/DataFrames/src/statsmodels/formula.jl:241
in call at /Users/roger/.julia/v0.4/DataFrames/src/statsmodels/formula.jl:247
julia> Pkg.status("DataFrames")
Pkg.status("DataArrays")
The text was updated successfully, but these errors were encountered: