Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fit_rdataset fails #75

Open
finmod opened this issue Feb 6, 2017 · 0 comments
Open

Fit_rdataset fails #75

finmod opened this issue Feb 6, 2017 · 0 comments

Comments

@finmod
Copy link

finmod commented Feb 6, 2017

Trying to run fit_rdataset.jl, which is not included in the Pkg.test("LowRankModels"). this line of code

now we'll try it without type imputation

we'll just fit four of the columns, to try out all four data types

dd = DataFrame([df[s] for s in [:TOD, :Scale, :Vigorous, :Wakeful]])
dd[end] = (dd[end].==1)
datatypes = [:real, :cat, :ord, :bool]

gives the following error:

MethodError: Cannot convert an object of type Array{DataArrays.AbstractDataArray{T,1},1} to an object of type DataFrames.DataFrame
This may have arisen from a call to the constructor DataFrames.DataFrame(...),
since type constructors fall back to convert methods.

in DataFrames.DataFrame(::Array{DataArrays.AbstractDataArray{T,1},1}) at .\sysimg.jl:53

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant