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

load() not working #13

Open
tpoisot opened this issue Oct 13, 2022 · 0 comments
Open

load() not working #13

tpoisot opened this issue Oct 13, 2022 · 0 comments

Comments

@tpoisot
Copy link

tpoisot commented Oct 13, 2022

Input:

using PalmerPenguins
using MLJ
using DataFrames, DataFramesMeta

penguins = PalmerPenguins.load()
df = dropmissing(DataFrame(penguins))

Output:

ERROR: MethodError: Cannot `convert` an object of type 
  Parsers.Result{InlineStrings.String15} to an object of type 
  Parsers.Result{Any}
Closest candidates are:
  convert(::Type{T}, ::T) where T at Base.jl:61
Stacktrace:
  [1] _parseany(T::Type, buf::Vector{UInt8}, pos::Int64, len::Int64, opts::Parsers.Options)
    @ CSV ~/.julia/packages/CSV/jFiCn/src/utils.jl:455
  [2] parsevalue!
    @ ~/.julia/packages/CSV/jFiCn/src/file.jl:810 [inlined]
  [3] parserow
    @ ~/.julia/packages/CSV/jFiCn/src/file.jl:620 [inlined]
  [4] parsefilechunk!(ctx::CSV.Context, pos::Int64, len::Int64, rowsguess::Int64, rowoffset::Int64, columns::Vector{CSV.Column}, #unused#::Type{Tuple{}})
    @ CSV ~/.julia/packages/CSV/jFiCn/src/file.jl:551
  [5] CSV.File(ctx::CSV.Context, chunking::Bool)
    @ CSV ~/.julia/packages/CSV/jFiCn/src/file.jl:291
  [6] File
    @ ~/.julia/packages/CSV/jFiCn/src/file.jl:226 [inlined]
  [7] #File#25
    @ ~/.julia/packages/CSV/jFiCn/src/file.jl:222 [inlined]
  [8] load(; raw::Bool)
    @ PalmerPenguins ~/.julia/packages/PalmerPenguins/urNoN/src/PalmerPenguins.jl:55
  [9] load()
    @ PalmerPenguins ~/.julia/packages/PalmerPenguins/urNoN/src/PalmerPenguins.jl:53
 [10] top-level scope
    @ ~/Experiments/MLJ/seance5.jl:11

Project.toml:

[deps]
AlgebraOfGraphics = "cbdf2221-f076-402e-a563-3d30da359d67"
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
DataFramesMeta = "1313f7d8-7da2-5740-9ea0-a2ca25f37964"
MLJ = "add582a8-e3ab-11e8-2d5e-e98b27df1bc7"
PalmerPenguins = "8b842266-38fa-440a-9b57-31493939ab85"

Status:

(MLJ) pkg> st
Status `~/Experiments/MLJ/Project.toml`
  [cbdf2221] AlgebraOfGraphics v0.6.11
  [336ed68f] CSV v0.10.4
⌃ [13f3f980] CairoMakie v0.8.13
  [a93c6f00] DataFrames v1.4.1
  [1313f7d8] DataFramesMeta v0.12.0
  [add582a8] MLJ v0.18.5
  [8b842266] PalmerPenguins v0.1.4
Info Packages marked with ⌃ have new versions available and may be upgradable.

Version info:

julia> versioninfo()
Julia Version 1.8.2
Commit 36034abf260 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 6 on 8 virtual cores
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 6
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