You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get the last 2 events or last 4 events in the past 6 hours
Difference in price for the last two events in 6 hours.
How to do this using Flint? I can write my own udf and solve this but I am wondering if there is any inbuilt function that is already available?
The text was updated successfully, but these errors were encountered:
kant777
changed the title
How to get the latest two events on a specific window using this library?
How to get the latest two events on a specific window using Flint?
Jun 27, 2020
I've done this by leftJoining the data frame to itself shifted forward w/ a tolerance, but that's hideously slow. I think that you could use addPastWindows for 6 hours, and then use a UDF on that.
How to get the latest two events using this library?
Say I have the following
I want to do operations like
How to do this using Flint? I can write my own udf and solve this but I am wondering if there is any inbuilt function that is already available?
The text was updated successfully, but these errors were encountered: