Skip to content

Commit

Permalink
Merge pull request #124 from dpguthrie/fix/duplicated-history
Browse files Browse the repository at this point in the history
Remove duplicates from history dataframe
  • Loading branch information
dpguthrie authored Oct 25, 2022
2 parents 7ab4f4f + 8542163 commit 2e2be72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yahooquery/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,7 @@ def history(
df = self._historical_data_to_dataframe(data, params, adj_timezone)
if adj_ohlc and "adjclose" in df:
df = self._adjust_ohlc(df)
df = df[~df.index.duplicated(keep='first')]
return df

def _history_1m(self, adj_timezone=True, adj_ohlc=False):
Expand Down

0 comments on commit 2e2be72

Please sign in to comment.