You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have converted the programs to be compatible with python 3.5 and am getting the following error:
Traceback (most recent call last):
File "markets.py", line 40, in
pystocks.performFeatureSelection(maxdeltas, maxlags, fout, cut, start_test, path_datasets, savemodel, method, folds, parameters)
File "C:\Users\student\Desktop\stock\pystocks.py", line 321, in performFeatureSelection
datasets = applyRollMeanDelayedReturns(datasets, delta)
File "C:\Users\student\Desktop\stock\pystocks.py", line 144, in applyRollMeanDelayedReturns
addFeatures(dataset, adjclose, returns, n)
File "C:\Users\student\Desktop\stock\pystocks.py", line 128, in addFeatures
dataframe[return_n] = dataframe[adjclose].pct_change(n)
TypeError: unsupported operand type(s) for /: 'str' and 'float'
The text was updated successfully, but these errors were encountered:
I have converted the programs to be compatible with python 3.5 and am getting the following error:
Traceback (most recent call last):
File "markets.py", line 40, in
pystocks.performFeatureSelection(maxdeltas, maxlags, fout, cut, start_test, path_datasets, savemodel, method, folds, parameters)
File "C:\Users\student\Desktop\stock\pystocks.py", line 321, in performFeatureSelection
datasets = applyRollMeanDelayedReturns(datasets, delta)
File "C:\Users\student\Desktop\stock\pystocks.py", line 144, in applyRollMeanDelayedReturns
addFeatures(dataset, adjclose, returns, n)
File "C:\Users\student\Desktop\stock\pystocks.py", line 128, in addFeatures
dataframe[return_n] = dataframe[adjclose].pct_change(n)
TypeError: unsupported operand type(s) for /: 'str' and 'float'
The text was updated successfully, but these errors were encountered: