yahooquery icon indicating copy to clipboard operation
yahooquery copied to clipboard

price data failed to be merged into dataframe when there's ticker with no data

Open zhenyulin opened this issue 3 years ago • 1 comments

Describe the bug

yahooquery/ticker.py in _historical_data_to_dataframe(self, data, params, adj_timezone)
   1267         d = {}
   1268         for symbol in self._symbols:
-> 1269             if "timestamp" in data[symbol]:
   1270                 d[symbol] = _history_dataframe(data, symbol, params, adj_timezone)
   1271             else:

just need a simple null check here

zhenyulin avatar Dec 17 '21 18:12 zhenyulin

See solution in #97 and pull request #102

danilogalisteu avatar Feb 15 '22 19:02 danilogalisteu