-
The codes: # Add 3 days to the register_time
adjusted_time = filtered_df_user.register_time + ibis.interval(days=3)
# Extract year, month, and day from the adjusted timestamp
year = adjusted_time.year().cast('string')
month = adjusted_time.month().cast('string').lpad(2, '0')
day = adjusted_time.day().cast('string').lpad(2, '0')
# Concatenate the components
date_str = year + month + day
# Convert the concatenated string to int32
formatted_date = date_str.cast('int32')
# Add the new column to df_user
filtered_df_user = filtered_df_user.mutate(formatted_date=formatted_date)
filtered_df_user.head(5).execute() Error message:
|
Beta Was this translation helpful? Give feedback.
Answered by
cpcloud
Oct 13, 2023
Replies: 1 comment 1 reply
-
These don't appear to be implemented, so I turned this discussion into a feature request (#7353)! Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cpcloud
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These don't appear to be implemented, so I turned this discussion into a feature request (#7353)!
Thanks!