-
Notifications
You must be signed in to change notification settings - Fork 370
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
feature: cols=:union
argument (or something like it) for combine
with AsTable
#3005
Comments
I will have to think about the best design of this feature. The challenge is that assumption that all elements have the same set of columns is important for performance. |
It's also possible that another API function might better express this; |
This is something that I was thinking about. In Let us discuss what logic for identification of fields would be best. The issue is that |
x-ref #2890 |
Is this what you want?
If yes, then we already have it. I have though opened JuliaData/Tables.jl#274 to allow for better control of resulting column order. |
@kleinschmidt When JuliaData/Tables.jl#274 is merged - can you please confirm that it gives you the functionality you need?
|
x-ref #3116 (we will need to jointly make a decision how to handle this) |
I have a function
myfun
that operates on one or more rows from my dataframe, and returns a Tables compliant output. The columns will not always be the same for every input. I'd like to be able to do something likeBut I get an error that the keys must all be the same, and there's no
cols
argument to control how that is handled.If I want to do this manually, I can do something like (thanks to @bkamins for suggesting):
but that's pretty clunky and you miss out on the nice transform syntax (have to manually do
v.input1
etc.).I propose adding a
cols
kwarg tocombine
to control how keys are handled fromAsTable
, although that my be a bit punny.The text was updated successfully, but these errors were encountered: