How to Solve NameError: name 'StockDataFrame' is not defined -- stockstats

Solution: Import the 'StockDataFrame' module

To Solve the error, add the following line to the top of your code.

from stockstats import StockDataFrame

 

For more information:
Python stockstats StockDataFrame