# ValueError: At least one array required as input error when dividing the set

I work on a finance forecasting project I did my preprocessing part but when I try to construct train and test set I got an error I have constructed my DataFrame as alldata = pd.DataFrame({‘Date’:date, ‘S&P 500 Price’:normalised_snp, ‘S&P 500 Open’: normalised_snpopen, ’10 Year Bond Price’: normalised_tybp, ’10 Year Bond Open’: normalised_tybpopen, ‘2 Year Bond… Read More ValueError: At least one array required as input error when dividing the set