Remote Data error

RemoteDataError Traceback (most recent call last)
in
2 start_date = datetime(2020,6,1)
3 end_date = datetime(2021,6,1)
----> 4 stocks = web.get_data_yahoo(symbols, start_date, end_date)

~\miniconda3\lib\site-packages\pandas_datareader\data.py in get_data_yahoo(*args, **kwargs)
84
85 def get_data_yahoo(*args, **kwargs):
—> 86 return YahooDailyReader(*args, **kwargs).read()
87
88

~\miniconda3\lib\site-packages\pandas_datareader\base.py in read(self)
256 df = self._dl_mult_symbols(self.symbols.index)
257 else:
→ 258 df = self._dl_mult_symbols(self.symbols)
259 return df
260

~\miniconda3\lib\site-packages\pandas_datareader\base.py in _dl_mult_symbols(self, symbols)
275 if len(passed) == 0:
276 msg = “No data fetched using {0!r}”
→ 277 raise RemoteDataError(msg.format(self.class.name))
278 try:
279 if len(stocks) > 0 and len(failed) > 0 and len(passed) > 0:

RemoteDataError: No data fetched using ‘YahooDailyReader’

I keep gettting this error in my jupyter notebook but I am able to run this code on my local python shell.

anyone have an answer to this??

I googled the error and it seems to be a common one with YahooDailyReader.

So, you’re able to download the data but cannot open it w/Pandas in Jupyter?

yes, exactly.
I can run this on my local python and get data and plot it and everything but cant do it in jupyter notebook for some reason.

What is even the benefit of jupyter notebook though? If I can just run in my local python?

This is also an issue:

You can read, write and execute Python in Jupyter and Colab. They also exist so you can share your projects with others and for collaborative purposes as well.

now if i just write my code on local python and then copy and paste, that would be a way to share and get feedback as well correct?

C+P where? here? Yea, of course.
I guess. But, one cannot really collaborate.
I’d suggest reading up on the benefits of using Jupyter or Google Colab. Colab is cloud-based and can be accessed anywhere. They are essential tools that are used by DA’s or DS.

ok, got it. Thanks for all your help!

Can anybody explain how to run pandas-datareader in Jupyter Notebook? I’m having the same problem as the OP:

RemoteDataError: No data fetched using 'YahooDailyReader'

I’d like to proceed, but haven’t found the solution.