Adding a pair of columns #4309
Closed
mikeprince4
started this conversation in
General
Replies: 2 comments 1 reply
-
update -- what I ended up doing was added a column as follows
Then as a subsequent step, I split the column into two columns
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, this or a struct is the current way for multi-column projections! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello -- I'm familiar with using
@daft.udf
to add a column to aDataFrame
. However I need to add a pair of columns, the calculations of which depend on each other.So something like this:
I can't simply calculate the
values_1
column and then calculatevalues_2
(or vice versa), due to the iterative nature ofsome_iterative_calculation
which updates the values forvalue_1
andvalue_2
iteratively until a convergence criteria is met.How best can I implement this in daft?
Beta Was this translation helpful? Give feedback.
All reactions