MLDatasets.jl icon indicating copy to clipboard operation
MLDatasets.jl copied to clipboard

`as_df=false` requires `using DataFrames`

Open pedromxavier opened this issue 3 years ago • 1 comments

When running

julia> using MLDatasets: Iris

julia> X, y = Iris(as_df=false)[:]

on julia 1.8.2, MLDatasets v0.7.5 the user is prompted with an error asking for DataFrames to be installed.

pedromxavier avatar Oct 26 '22 19:10 pedromxavier

That is intended behavior since in the constructor we do some intermediate manipulations using dataframes for convenience, but with a little additional effort that can be avoided (fix in #185)

CarloLucibello avatar Oct 27 '22 05:10 CarloLucibello