I'm not sure if this is a dataframe error or a MLDataUtils error. Using the below MWE:
using MLDataUtils
using RDatasets
data = RDatasets.dataset("ISLR", "Default");
train, test = MLDataUtils.splitobs(data, at = 0.05);
Gives the error:
BoundsError: attempt to access "invalid columns 1:500 selected"
Stacktrace:
[1] Type at /home/cameron/.julia/packages/DataFrames/lyCjP/src/other/index.jl:252 [inlined]
[2] Type at /home/cameron/.julia/packages/DataFrames/lyCjP/src/subdataframe/subdataframe.jl:41 [inlined]
[3] Type at /home/cameron/.julia/packages/DataFrames/lyCjP/src/subdataframe/subdataframe.jl:43 [inlined]
[4] view at /home/cameron/.julia/packages/DataFrames/lyCjP/src/subdataframe/subdataframe.jl:87 [inlined]
[5] view at /home/cameron/.julia/packages/DataFrames/lyCjP/src/subdataframe/subdataframe.jl:82 [inlined]
[6] datasubset(::DataFrame, ::UnitRange{Int64}, ::LearnBase.ObsDim.Undefined) at /home/cameron/.julia/packages/MLDataUtils/Onazx/src/datapattern.jl:10
[7] splitobs at /home/cameron/.julia/packages/MLDataPattern/mX21p/src/splitobs.jl:121 [inlined]
[8] #splitobs#59 at /home/cameron/.julia/packages/MLDataPattern/mX21p/src/splitobs.jl:113 [inlined]
[9] (::getfield(MLDataPattern, Symbol("#kw##splitobs")))(::NamedTuple{(:at,),Tuple{Float64}}, ::typeof(splitobs), ::DataFrame) at ./none:0
[10] top-level scope at In[23]:5
I'm not sure if this is a dataframe error or a MLDataUtils error. Using the below MWE:
Gives the error:
Package status: