pandas-datareader
pandas-datareader copied to clipboard
Please Solve this actually i m working on a stock prediction ml algorithm....
`---------------------------------------------------------------------------
RemoteDataError Traceback (most recent call last)
4 frames /usr/local/lib/python3.6/dist-packages/pandas/util/_decorators.py in wrapper(*args, **kwargs) 212 else: 213 kwargs[new_arg_name] = new_arg_value --> 214 return func(*args, **kwargs) 215 216 return cast(F, wrapper)
/usr/local/lib/python3.6/dist-packages/pandas_datareader/data.py in DataReader(name, data_source, start, end, retry_count, pause, session, api_key) 385 retry_count=retry_count, 386 pause=pause, --> 387 session=session, 388 ).read() 389
/usr/local/lib/python3.6/dist-packages/pandas_datareader/base.py in read(self) 249 # If a single symbol, (e.g., 'GOOG') 250 if isinstance(self.symbols, (string_types, int)): --> 251 df = self._read_one_data(self.url, params=self._get_params(self.symbols)) 252 # Or multiple symbols, (e.g., ['GOOG', 'AAPL', 'MSFT']) 253 elif isinstance(self.symbols, DataFrame):
/usr/local/lib/python3.6/dist-packages/pandas_datareader/yahoo/daily.py in _read_one_data(self, url, params) 151 url = url.format(symbol) 152 --> 153 resp = self._get_response(url, params=params) 154 ptrn = r"root.App.main = (.*?);\n}(this));" 155 try:
/usr/local/lib/python3.6/dist-packages/pandas_datareader/base.py in _get_response(self, url, params, headers) 177 msg += "\nResponse Text:\n{0}".format(last_response_text) 178 --> 179 raise RemoteDataError(msg) 180 181 def _get_crumb(self, *args):
RemoteDataError: Unable to read URL: https://finance.yahoo.com/quote//history?period1=1262318400&period2=1597463999&interval=1d&frequency=1d&filter=history Response Text: b'\n<meta charset='utf-8'>\n