Skip to content

Instantly share code, notes, and snippets.

@icexelloss
Created October 18, 2018 19:14
Show Gist options
  • Save icexelloss/6da4166360cd75cbd393ba2959b329aa to your computer and use it in GitHub Desktop.
Save icexelloss/6da4166360cd75cbd393ba2959b329aa to your computer and use it in GitHub Desktop.
Flint2
left = ...
# time, v1
# 20180101, 100
# 20180102, 50
# 20180104, -50
# 20180105, 100
right = ...
# time, v2
# 20171231, 100.0
# 20180104, 105.0
# 20180105, 102.0
joined = left.leftJoin(right, tolerance='1day')
# time, v1, v2
# 20180101, 100, 100.0
# 20180102, 50, null
# 20180104, -50, 105.0
# 20180105, 100, 102.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment