mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-13 12:00:16 +08:00
STY: remove unused imports MAINT: change dtype to object for compatibility with python3 MAINT: rename pipeline columns and constants for clarity MAINT: rename column
22 lines
592 B
Python
22 lines
592 B
Python
"""
|
|
Datasets representing dates of recently announced buyback authorizations.
|
|
"""
|
|
from zipline.utils.numpy_utils import (
|
|
datetime64ns_dtype,
|
|
float64_dtype,
|
|
categorical_dtype
|
|
)
|
|
|
|
from .dataset import Column, DataSet
|
|
|
|
|
|
class BuybackAuthorizations(DataSet):
|
|
"""
|
|
Dataset representing dates of recently announced cash buyback
|
|
authorizations.
|
|
"""
|
|
previous_amount = Column(float64_dtype)
|
|
previous_date = Column(datetime64ns_dtype)
|
|
previous_unit = Column(categorical_dtype, missing_value=None)
|
|
previous_type = Column(categorical_dtype, missing_value=None)
|