We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13233b commit a462213Copy full SHA for a462213
alphalens/tears.py
@@ -410,11 +410,16 @@ def create_turnover_tear_sheet(factor_data, turnover_periods=None):
410
411
quantile_factor = factor_data['factor_quantile']
412
413
- quantile_turnover = \
414
- {p: pd.concat([perf.quantile_turnover(quantile_factor, q, p)
415
- for q in quantile_factor.sort_values().unique().tolist()],
416
- axis=1)
417
- for p in turnover_periods}
+ quantile_turnover = {
+ p: pd.concat(
+ [
+ perf.quantile_turnover(quantile_factor, q, p)
+ for q in quantile_factor.sort_values().unique().tolist()
418
+ ],
419
+ axis=1,
420
+ )
421
+ for p in turnover_periods
422
+ }
423
424
autocorrelation = pd.concat(
425
[perf.factor_rank_autocorrelation(factor_data, period) for period in
0 commit comments