Giter Site home page Giter Site logo

Comments (9)

tshort avatar tshort commented on July 19, 2024

That's the same error that Doug brought up a couple of days ago, right? Harlan thinks it's because of a change in Julia indexing. I don't get that on a slightly older version of Julia.

from dataframes.jl.

HarlanH avatar HarlanH commented on July 19, 2024

Thanks for posting this, Chris. Yes, this is the error due to a change in the way the : operator works that happened a few days ago. Haven't heard back from Jeff -- I'll email him again...

from dataframes.jl.

HarlanH avatar HarlanH commented on July 19, 2024

Jeff sayeth: df[1,:] will now get converted to df[1,1:div(length(df),size(df,1))].

from dataframes.jl.

tshort avatar tshort commented on July 19, 2024

Do we have to redefine length() for a DF? Can we override the colon() function?

from dataframes.jl.

HarlanH avatar HarlanH commented on July 19, 2024

Oh, bleah. I hadn't thought this through when I copy-pasted it. No, we can't over-ride this, it's part of the parser. I'm going to file a bug report.

from dataframes.jl.

HarlanH avatar HarlanH commented on July 19, 2024

OK, bug report here: JuliaLang/julia#1066 If you've got a minute, would you mind writing and checking in the pointless length(AbstractDataFrame) function? That'll work around this problem.

from dataframes.jl.

tshort avatar tshort commented on July 19, 2024

I think I got that in.

But, in the process, I ended up pushing/closing this pull request:

https://github.com/HarlanH/JuliaData/pull/37

If someone knows how to undo that, please do. That could use review and comment.

And, I thought I was just starting to figure out git and github... Grrr.

from dataframes.jl.

tshort avatar tshort commented on July 19, 2024

More problems. I had to undefine numel for DataFrames. It turns out that numel is a direct alias for length, so if I redefine numel, I redefine length. I don't think I like that feature.

from dataframes.jl.

tshort avatar tshort commented on July 19, 2024

Another problem: d[:] doesn't work. That should probably return the whole DF.

from dataframes.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.