Comments (9)
yes, we will definitely rename @based_on
to @combine
.
from dataframesmeta.jl.
I dislike the name based_on
, so I'm good with a change. select
would probably work.
from dataframesmeta.jl.
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.
+1 for changing the name. based_on
isn't very descriptive and IMO is actively confusing given what it actually does.
from dataframesmeta.jl.
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.
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.
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.
@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.
Closed via #167
from dataframesmeta.jl.
Related Issues (20)
- Add a `@bycol` macro-flag HOT 5
- Add metadata for working with DataFrames HOT 1
- Access subdf in @by and @combine HOT 7
- Request - grouped by columns available as single values rather than vectors HOT 5
- Request: `@order` to mimic `DataFrames.order` in `@orderby` HOT 2
- Very slow `@astable` macro outside a function HOT 4
- `@with` macro clashes with `Base.@with` in Julia 1.11+ HOT 8
- `ByRow` not defined when importing DataFramesMeta HOT 1
- docs question HOT 7
- Request @rsubset_rtransform HOT 7
- Special-case `==` as with other one-argument functions HOT 2
- Add an alternative syntax escaping than `$` HOT 1
- MethodError occurred when broadcasting a string inside @astable HOT 3
- Speculative future of `@groupby` macro
- Allow reference to previously defined columns in @transform HOT 7
- `groupby` derived columns
- Add convenience function to look up a single value in a `DataFrame` HOT 2
- Error in the @by example in the documentation HOT 1
- Request - $AsTable with prefix HOT 2
- kwargs not passed to subset in `@subset` with multiple conditions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dataframesmeta.jl.