AI4Finance-Foundation/FinRL

Error in env_stocktrading.py

Closed this issue · 0 comments

Hi, I am trying to experiment with FinRL using the example Stock_NeurIPS2018_2_Train.

Running the code e_train_gym = StockTradingEnv(df = train_data, **env_kwargs) to set up the environment generated an error saying: AttributeError: 'numpy.float64' object has no attribute 'values'

The error refers to the line --> 409 + self.data.close.values.tolist()

How to resolve the issue?