Last active
January 16, 2017 19:31
-
-
Save kyle-eshares/e0151ed4cc4e27adc4fa4b7742264249 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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