Annoying yfinance error and incompatibility with numpy/pandas

  numpy, python, yfinance

I have the latest numpy and pandas installed and yfinance too, since I just installed them recently. (like a couple of days ago)
Now right now I am getting the error:

TypeError: Cannot interpret ‘<attribute ‘dtype’ of ‘numpy.generic’ objects>’ as a data type

My Code literally is:

    stock = yf.Ticker('MSFT')

Thank you

Source: Python Questions

LEAVE A COMMENT