Skip to content

Commit

Permalink
Fix dpguthrie#263 FutureWarning
Browse files Browse the repository at this point in the history
Main repo is not active in updating the PR to fix the above.
Fix in fork.
  • Loading branch information
m1pro authored Sep 24, 2024
1 parent 5d762e9 commit 1db5628
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.fillna({"dividends": 0}, inplace=True)
if "splits" in df.columns:
df["splits"].fillna(0, inplace=True)
df.fillna({"splits": 0}, inplace=True)
return df

def _adjust_ohlc(self, df):
Expand Down

0 comments on commit 1db5628

Please sign in to comment.