Skip to content

Commit

Permalink
Update ticker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SauersML authored Apr 2, 2024
1 parent 7c52b7b commit 10099d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yahooquery/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1330,9 +1330,9 @@ def _historical_data_to_dataframe(self, data, params, adj_timezone):
df = pd.DataFrame(columns=["high", "low", "volume", "open", "close"])
else:
if "dividends" in df.columns:
df["dividends"].fillna(0, inplace=True)
df["dividends"] = df["dividends"].fillna(0)
if "splits" in df.columns:
df["splits"].fillna(0, inplace=True)
df["splits"] = df["splits"].fillna(0)
return df

def _adjust_ohlc(self, df):
Expand Down

0 comments on commit 10099d9

Please sign in to comment.