Skip to content

Instantly share code, notes, and snippets.

@kyle-eshares
Last active January 16, 2017 19:31
Show Gist options
  • Save kyle-eshares/e0151ed4cc4e27adc4fa4b7742264249 to your computer and use it in GitHub Desktop.
Save kyle-eshares/e0151ed4cc4e27adc4fa4b7742264249 to your computer and use it in GitHub Desktop.
def is_canceled(report_date)
def inner(flat, mdl):
flat.is_canceled = mdl.canceled_date < report_date
return inner
report_date = datetime.today()
flat_securities = (
conduit(all_securities)
.map(
flatten(
...
is_canceled(report_date),
)
)
...
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment