GithubHelp home page GithubHelp logo

Comments (8)

bkamins avatar bkamins commented on June 6, 2024 3

I would go for withdf or with_df or with_dataframe. Since it is a metapackage probably sortest i.e. withdf is my preference. Also with such a name there is low risk of name clash in the future.

from dataframesmeta.jl.

bkamins avatar bkamins commented on June 6, 2024

This is indeed a problematic issue. Probably we need to un-export @with (and the question is if there is a sensible way to rename it).

from dataframesmeta.jl.

pdeffebach avatar pdeffebach commented on June 6, 2024

This is definitely a bummer. Honestly, it seems like a pretty niche application (apply a function with in a temporary context) to use for such an obvious name.

We should brainstorm a renaming.

R calls this feature attach, but I don't think that's a very good name and attach has a bad reputation in the R community (for reasons which don't apply to DataFramesMeta.jl).

from dataframesmeta.jl.

pdeffebach avatar pdeffebach commented on June 6, 2024

Thats a good idea. And will likely be the answer.

from dataframesmeta.jl.

pdeffebach avatar pdeffebach commented on June 6, 2024

@bkamins I've thought about this and decided @attach is the best name. @withdf is awkward because people will write @withdf df begin ... (assuming they name their dataframe df).

Maybe @attaching?

from dataframesmeta.jl.

bkamins avatar bkamins commented on June 6, 2024

@attach is OK (it is a common name, but hopefully with low risk of overlap.

from dataframesmeta.jl.

nathanrboyer avatar nathanrboyer commented on June 6, 2024

That is a bummer that @with has to change. FWIW, I like the @withdf name better than @attach.

@withdf is awkward because people will write @withdf df begin ...

I understand that you don't like the repeated df df, but if you read it this way, I think it is natural: "With data frame df, begin ..." or "With data frame iris, begin ...".

@attach iris, in contrast, sounds like the end of the sentence: "Attach iris. Begin ...". This makes less sense to me, since attach doesn't feel like it needs begin.

from dataframesmeta.jl.

pdeffebach avatar pdeffebach commented on June 6, 2024

We could do @attaching but that's more characters.

@using would have been great, but of course that will confuse people a lot.

Maybe @from ? As in, when I see :x I know that column is from df.

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.