-
Notifications
You must be signed in to change notification settings - Fork 81
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
Jake python2 demo notebooks #2150
Conversation
demo/web/src/main/notebooks/A. Real-time table ops/A3 Do time series and relational joins.md
Outdated
Show resolved
Hide resolved
…series and relational joins.md
Co-authored-by: JJ Brosnan <[email protected]>
offset = expressionToNanos("10D") | ||
now = currentTime() | ||
time_interval = to_nanos("00:01:00") | ||
offset = to_nanos("240:00:00") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is nasty, but for a 1-to-1 matching makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah unless I missed it I didn't see an expressionToNanos
equivalent in the new API so 🤷
You could do to_period
and there's probably a way to convert that period to nanos but that's not apparent right now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, agreed
daily_data_binned = daily_data.update("TimestampMinute = lowerBin(Timestamp, nanos_bin)")\ | ||
.dropColumns("Timestamp")\ | ||
.aggBy(agg_list, "TimestampMinute") | ||
daily_data_binned = daily_data.update(formulas=["TimestampMinute = lowerBin(Timestamp, nanos_bin)"])\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have column names with pep8 standards?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a strong opinion either way
No description provided.