Data frame error of the same code

Data frames are imported intermittently through Pandas data readers. I separated two pages through navigation, but an error occurs only in the same place.


error_code
this is error meseege and code. There are times when data frames come out and times when they donโ€™t.


nomal_code
This code and page are normally printed pages.

Streamlit
This is my distributed application.
LEEGIYEONG/StockPrediction: 2021๋…„ LSTM, NeuralProphet ์ฃผ๊ฐ€์ง€์ˆ˜์˜ˆ์ธก (github.com)
This is my repo

Why is this error coming out when itโ€™s the same chord? Please :frowning_face:

Try the following:

Step #1: Check if you first externally installed the datareader with the command:

pip install pandas_datareader

Step #2: Check if you then initialized it in your program with the command:

import pandas_datareader.data as web

Step #3: Change 4th line of your function from:

df = data.DataReader(

To:

df = web.DataReader(

1 Like

Thank you for the information. But it still didnโ€™t work. So I just replaced the library with fdr.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.