Skip to content

Commit

Permalink
Merge df78f57 into 88ff033
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Sanderson committed Nov 1, 2016
2 parents 88ff033 + df78f57 commit 98b577d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zipline/pipeline/factors/statistical.py
Expand Up @@ -75,6 +75,8 @@ class RollingPearson(_RollingCorrelation):
Most users should call Factor.pearsonr rather than directly construct an
instance of this class.
"""
window_safe = True

def compute(self, today, assets, out, base_data, target_data):
# If `target_data` is a Slice or single column of data, broadcast it
# out to the same shape as `base_data`, then compute column-wise. This
Expand Down Expand Up @@ -119,6 +121,8 @@ class RollingSpearman(_RollingCorrelation):
Most users should call Factor.spearmanr rather than directly construct an
instance of this class.
"""
window_safe = True

def compute(self, today, assets, out, base_data, target_data):
# If `target_data` is a Slice or single column of data, broadcast it
# out to the same shape as `base_data`, then compute column-wise. This
Expand Down

0 comments on commit 98b577d

Please sign in to comment.