can someone help me with this code:
from pandas_reader import data as wb
tickers = [“PG”, “MSFT”, “T”, “F”, “GE”]
new_data = pd.DataFrame()
for t in tickers:
new_data[t] = wb.DataReader (t, data_source = “yahoo”, start = “1995-1-1”)[“Adj Close”]
I get these errors:
error 1:
ModuleNotFoundError Traceback (most recent call last)
Cell In[113], line 1
----> 1 from pandas_reader import data as wb
ModuleNotFoundError: No module named ‘pandas_reader’
Error 2:
ameError Traceback (most recent call last)
Cell In[106], line 4
2 new_data = pd.DataFrame()
3 for t in tickers:
----> 4 new_data[t] = wb.DataReader (t, data_source = “yahoo”, start = “1995-1-1”)[“Adj Close”]
NameError: name ‘wb’ is not defined