-
I currently have a calculate_date_diff() function that takes in two dates and then calculates the difference. I am using the mutate functionality to apply this function but the output seems to be the same regardless of the input: date_calc = diff_types.mutate(string_date_diff=calculate_date_diff(diff_types.registration_date, diff_types.cc_open_date)) Would anyone be able to provide an example or guidance? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Hey @YCat33 -- can you post the contents of your diffing function? This should be possible as you've written it if the function is using the ibis API to operate on the two columns. |
Beta Was this translation helpful? Give feedback.
This is using the Trino backend: