mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-10 04:16:41 +08:00
bc302beec9
- Refactored EventsLoader and BlazeEventsLoader to not require a subclass per dataset. Instead, you now pass a map from columns to event fields directly to the EventsLoader constructor. - Removed a large number of Quantopian-specific datasets and associated tests. - Rewrote the core logic of EventsLoader and BlazeEventsLoader to share index calculations across multiple requested columns. - Fixed a bug where event fields were incorrectly forward-filled when null values were present in an event.
16 lines
417 B
Python
16 lines
417 B
Python
"""
|
|
Common constants for Pipeline.
|
|
"""
|
|
AD_FIELD_NAME = 'asof_date'
|
|
ANNOUNCEMENT_FIELD_NAME = 'announcement_date'
|
|
CASH_FIELD_NAME = 'cash'
|
|
DAYS_SINCE_PREV = 'days_since_prev'
|
|
DAYS_TO_NEXT = 'days_to_next'
|
|
NEXT_ANNOUNCEMENT = 'next_announcement'
|
|
PREVIOUS_AMOUNT = 'previous_amount'
|
|
PREVIOUS_ANNOUNCEMENT = 'previous_announcement'
|
|
|
|
EVENT_DATE_FIELD_NAME = 'event_date'
|
|
SID_FIELD_NAME = 'sid'
|
|
TS_FIELD_NAME = 'timestamp'
|