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

ERROR: LoadError: UndefVarError: DataArrays not defined #1

Open
escism opened this issue Apr 14, 2018 · 1 comment
Open

ERROR: LoadError: UndefVarError: DataArrays not defined #1

escism opened this issue Apr 14, 2018 · 1 comment

Comments

@escism
Copy link

escism commented Apr 14, 2018

I'm getting the following error when I run the program:

ERROR: LoadError: UndefVarError: DataArrays not defined Stacktrace: [1] clean_order(::Array{Union{Missings.Missing, String},1}) at /Users/escism/Desktop/DFS/Baseball/data_cleaning.jl:10 [2] read_player_data(::String, ::String) at /Users/escism/Desktop/DFS/Baseball/data_cleaning.jl:61 [3] create_lineups(::Int64, ::Int64, ::Int64, ::#baseball_formulation, ::String, ::String, ::String) at /Users/escism/Desktop/DFS/Baseball/data_cleaning.jl:196 [4] include_from_node1(::String) at ./loading.jl:576 [5] include(::String) at ./sysimg.jl:14 while loading /Users/escism/Desktop/DFS/Baseball/optimize_multiple_lineups_baseball.jl, in expression starting on line 44

Any insight in how to fix and edit that issue?

@jnederlo
Copy link

jnederlo commented Apr 28, 2018

@escism

DataArrays is a package. So to fix the error first you need to run

Pkg.add("DataArrays")

in Julia, then in the data_cleaning.jl file you need to add the following to the top of the document

using DataArrays

That should solve your issue.

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

2 participants