Skip to content

Commit

Permalink
Fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
ValueRaider committed May 13, 2024
1 parent 7ede47a commit d4869c1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion yfinance/scrapers/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,6 @@ def _fix_bad_stock_splits(self, df, interval, tz_exchange):
logger.debug(f'price-repair-split: Checking split {split:.4f} @ {split_dt.date()} for possible repair')

cutoff_idx = min(df.shape[0], split_idx+1) # add one row after to detect big change
cutoff_dt = df.index[cutoff_idx]
df_pre_split = df.iloc[0:cutoff_idx+1]

df_pre_split_repaired = self._fix_prices_sudden_change(df_pre_split, interval, tz_exchange, split, correct_volume=True)
Expand Down

0 comments on commit d4869c1

Please sign in to comment.