-
Notifications
You must be signed in to change notification settings - Fork 360
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
Problems sorting dataFrames imported from CSV #2019
Comments
CSV.jl broke this; will be fixed once the new version is tagged: JuliaData/CSV.jl@30f7d53 |
Do you know when will the fix come out? (I have a work due for friday, and I want to know if i have to switch to python for this time) Btw, thanks for your quick answer! |
The new release will go out in the next hour or two. |
New release tagged |
The problem is still there after the update.
|
You need to do |
This works! thank you! |
Yes, that's what recently broke, but is now fixed. |
I'm having problems while handle missing values in dataframe.
then I got error setindex! not defined for CSV.Column{Union{Missing, Int64},Union{Missing, Int64}} so tried and got another error InexactError: Int64(1.6666666666666667) Stacktrace: What should I do here ? |
Please update CSV.jl to its latest version (0.7.7 currently). |
Yes, I updated CSV.jl in 0.77 but still, the same error occurs |
I did one small experiment and I got to know that it is just because the different data types of columns include in CSV. please see the following code
and this error does not occur when I run the following code
now I know the reason but confused about how to solve it. I can not use eltype while reading CSV because in my dataset contains 171 columns and it typically has either Int or Float. stuck for how to convert all columns in Float64. |
You can do |
Yes, it helped. now I am able to run Thanks quinnj and bkamins !! |
I just thought of the same when answering on SO :). |
I'm having problems sorting some data frames.
For example, running
Give me this error
The thing is, this is the example from the doc of DataFrames. (see https://juliadata.github.io/DataFrames.jl/stable/man/sorting/)
Note: this is with DataFrames 0.19.4 running on Julia 1.2.0, but I was also able to reproduce this behavior with DataFrames 0.19.4 with Julia 1.1.1.
Precise version info: (of one of my test)
Julia Version 1.1.1 Commit 55e36cc308 (2019-05-16 04:10 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
The text was updated successfully, but these errors were encountered: