Dear All,
I am using the following version of Julia and trying to load iris dataset
from RDatasets package using Dataframes.
Do you think things are broken ?
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+5452 (2015-06-19 01:28 UTC)
_/ |\__'_|_|_|\__'_| | Commit 01293bd* (0 days old master)
|__/ | x86_64-linux-gnu
julia> using
RDatasets
Docile: upgrading cache to 0.0.1.
julia> using DataFrames
julia> iris = dataset("datasets","iris")
WARNING: gc_disable() is deprecated, use gc_enable(false) instead.
in depwarn at ./deprecated.jl:62
in gc_disable at deprecated.jl:49
in close at /home/km/.julia/v0.4/GZip/src/GZip.jl:304
in gzopen at /home/km/.julia/v0.4/GZip/src/GZip.jl:265
in read_rda at /home/km/.julia/v0.4/DataFrames/src/RDA.jl:418
in dataset at /home/km/.julia/v0.4/RDatasets/src/dataset.jl:6
while loading no file, in expression starting on line 0
WARNING: gc_enable() is deprecated, use gc_enable(true) instead.
in depwarn at ./deprecated.jl:62
in gc_enable at deprecated.jl:49
in close at /home/km/.julia/v0.4/GZip/src/GZip.jl:310
in gzopen at /home/km/.julia/v0.4/GZip/src/GZip.jl:265
in read_rda at /home/km/.julia/v0.4/DataFrames/src/RDA.jl:418
in dataset at /home/km/.julia/v0.4/RDatasets/src/dataset.jl:6
while loading no file, in expression starting on line 0
WARNING: gc_enable() is deprecated, use gc_enable(true) instead.error in
running finalizer: ErrorException("task switch not allowed from inside gc
finalizer")
150x5 DataFrames.DataFrame
| Row | SepalLength | SepalWidth | PetalLength | PetalWidth | Species |
|-----|-------------|------------|-------------|------------|-------------|
| 1 | 5.1 | 3.5 | 1.4 | 0.2 | "setosa" |
| 2 | 4.9 | 3.0 | 1.4 | 0.2 | "setosa" |
| 3 | 4.7 | 3.2 | 1.3 | 0.2 | "setosa" |
| 4 | 4.6 | 3.1 | 1.5 | 0.2 | "setosa" |
...
and then
julia> head(iris)
ERROR: MethodError: `getindex` has no method matching
getindex(::DataFrames.DataFrame, ::UnitRange{Int64}, ::Colon)
Closest candidates are:
getindex{T<:Real}(::DataFrames.DataFrame, ::AbstractArray{T<:Real,1},
::Union{Real,Symbol})
getindex{R<:Real,T<:Union{Real,Symbol}}(::DataFrames.DataFrame,
::AbstractArray{R<:Real,1}, ::AbstractArray{T<:Union{Real,Symbol},1})
getindex{T<:Union{Real,Symbol}}(::DataFrames.DataFrame,
::AbstractArray{T<:Union{Real,Symbol},1})
...
in head at
/home/km/.julia/v0.4/DataFrames/src/abstractdataframe/abstractdataframe.jl:316
Please let me know
Regards,
KM