I'm trying to download the training data using 0_dl_trainval_data.py. It looks like the data downloaded successfully but the pre-processing causes the error. Specifically price_array = np.hstack([price_array, df[df.tic == tic][['close']].values]) causes the error.
- What are some potential causes
- What are some potential solutions?
- Wouldn't it be better to isolate the data downloading and cleaning?