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

Sorting error using examples from docs #1945

Closed
IanButterworth opened this issue Sep 4, 2019 · 0 comments · Fixed by #1946
Closed

Sorting error using examples from docs #1945

IanButterworth opened this issue Sep 4, 2019 · 0 comments · Fixed by #1946

Comments

@IanButterworth
Copy link

For both v0.19.3 and master on Julia v1.2:

using DataFrames, CSV
iris = CSV.read(joinpath(dirname(pathof(DataFrames)), "../docs/src/assets/iris.csv"))
sort!(iris)
ERROR: LoadError: ArgumentError: CSV.Column is read-only; to get a mutable vector, do `copy(col)` or to make all columns mutable do `CSV.read(file; copycols=true)` or `CSV.File(file) |> DataFrame`
Stacktrace:
 [1] setindex!(::CSV.Column{Float64,Float64}, ::Float64, ::Int64) at /home/ian/.julia/packages/CSV/KgT4M/src/tables.jl:26
 [2] permute!!(::CSV.Column{Float64,Float64}, ::Array{Int64,1}) at ./combinatorics.jl:107
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

Successfully merging a pull request may close this issue.

1 participant