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
julia> open(io->CSV.read(io, DataFrame), dataset("us_counties"))
ERROR: MethodError: open(::var"#13#14", ::DataSet) is ambiguous. Candidates:
open(f::Function, args...; kwargs...) in Base at io.jl:322
open(as_type, conf::DataSet) in DataSets at /home/jrun/data/.julia/packages/DataSets/ssxgC/src/DataSets.jl:278
Possible fix, define
open(::Function, ::DataSet)
Stacktrace:
[1] top-level scope at REPL[48]:1
The text was updated successfully, but these errors were encountered:
Right, this version of open() isn't defined - instead, you can use open(func, T, dataset).
In your case open(io->CSV.read(io, DataFrame), IO, dataset("us_counties"))
Possibly we could define it; we'd need some concept of "default data type" T to open as and pass to the user's Function. For Blob that could be IO, but it could also be a data buffer like Vector{UInt8}. Or maybe it should just open as Blob to keep it lazy?
The text was updated successfully, but these errors were encountered: