Skip to content
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

How to calculate the time differences of two date fields? #163

Open
Realvincentyuan opened this issue Aug 18, 2022 · 0 comments
Open

How to calculate the time differences of two date fields? #163

Realvincentyuan opened this issue Aug 18, 2022 · 0 comments

Comments

@Realvincentyuan
Copy link

Realvincentyuan commented Aug 18, 2022

Overview

Basically I have a few date fields, say day1, day2 stuff and I want to calculate the year/month/day differences between these fields. Direct minus of those fields give a ns format

test_date_df = df['END_DT'] - df['START_DT']
test_date_df.dtype

dtype is dtype('<U')

1 row example:

1.97096e+12

I did not find a proper workaround to convert this 1.97096e+12 into year/month/day, it is great if the operation can be done with native H2O function or I expect this function works with multi-cores so that the out of memory error is not a concern as I have huge volume of data.

With Pandas it is very handy to work this out with multi-processing but just check out if someone has a solution with H2O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant