Skip to content

Commit

Permalink
Merge pull request #1299 from meldinman/changes_to_develop
Browse files Browse the repository at this point in the history
fix pandas warning in strategy_functions.py
  • Loading branch information
robcarver17 authored Dec 5, 2023
2 parents 626333f + e700311 commit 75575e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syscore/pandas/strategy_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def calculate_cost_deflator(price: pd.Series) -> pd.Series:
daily_returns = price_to_daily_returns(price)
## crude but doesn't matter
vol_price = daily_returns.rolling(180, min_periods=3).std().ffill()
final_vol = vol_price[-1]
final_vol = vol_price.iloc[-1]

cost_scalar = vol_price / final_vol

Expand Down

0 comments on commit 75575e7

Please sign in to comment.