Coder Social home page Coder Social logo

Rename based_on()? about dataframesmeta.jl HOT 9 CLOSED

juliadata avatar juliadata commented on May 18, 2024
Rename based_on()?

from dataframesmeta.jl.

Comments (9)

pdeffebach avatar pdeffebach commented on May 18, 2024 1

yes, we will definitely rename @based_on to @combine.

from dataframesmeta.jl.

tshort avatar tshort commented on May 18, 2024

I dislike the name based_on, so I'm good with a change. select would probably work.

from dataframesmeta.jl.

nalimilan avatar nalimilan commented on May 18, 2024

It looks like that use of select would be more or less consistent with LINQ: https://msdn.microsoft.com/en-us/library/bb386922%28v=vs.110%29.aspx

(Another possibility would be combine, but I'm not sure it's used anywhere else.)

from dataframesmeta.jl.

ararslan avatar ararslan commented on May 18, 2024

+1 for changing the name. based_on isn't very descriptive and IMO is actively confusing given what it actually does.

from dataframesmeta.jl.

sswatson avatar sswatson commented on May 18, 2024

Is there still support for this change? Seems like it would be easy to implement if folks still want to do it.

from dataframesmeta.jl.

nalimilan avatar nalimilan commented on May 18, 2024

Yes, I think we should merge based_on with select and transform. There's no reason to have a separate function for summarizing: whether the result contains one row per group or multiple rows per group can be determined dynamically based on whether the function returns a row or a data frame. DataFrames does this with combine on current master, and with JuliaData/DataFrames.jl#1601 DataFramesMeta could just call combine, passing it the column names and an anonymous function. You're welcome to experiment with that.

from dataframesmeta.jl.

sswatson avatar sswatson commented on May 18, 2024

Thanks for the update; I didn't realize just how current this issue is over on the DataFrames front. I'll revisit the issue a bit later, and if it seems some effort would be appreciated to make this happen on DataFramesMeta, I'll give it a try.

from dataframesmeta.jl.

nalimilan avatar nalimilan commented on May 18, 2024

@pdeffebach Is there any reason to keep @based_on now that you implemented @transform?

EDIT: my bad, @based_on is equivalent to @combine, not to @transform. See #167.

from dataframesmeta.jl.

pdeffebach avatar pdeffebach commented on May 18, 2024

Closed via #167

from dataframesmeta.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.