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
Using OS X 10.12 and using Version: 1.15.0rc2 of numpy. I'm seeing this error:
File "temp.py", line 103, in computeMACD
emaslow = ExpMovingAverage(x, slow)
File "temp.py", line 93, in ExpMovingAverage
a = np.convolve(values, weights, mode='full')[:len(values)]
File "/Users/x/xx/graph/lib/python3.6/site-packages/numpy/core/numeric.py", line 1045, in convolve
return multiarray.correlate(a, v[::-1], mode)
TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rule 'safe'
I'm seeing this error when using this widely available code:
My values are real stock prices, ['93.89', '89.89', '87.17', '90.57', '88.92', '90.46'...]. Window is 26. I'm not sure why so many people reference the above code that is not working for me. Any ideas what is wrong here?
The text was updated successfully, but these errors were encountered:
v = ['93.89', '89.89', '87.17', '90.57', '88.92', '90.46']*30
ExpMovingAverage(v,10)
TypeError: Cannot cast array data from dtype('float64') to
dtype('<U32') according to the rule 'safe'
Using OS X 10.12 and using Version: 1.15.0rc2 of numpy. I'm seeing this error:
I'm seeing this error when using this widely available code:
My values are real stock prices, ['93.89', '89.89', '87.17', '90.57', '88.92', '90.46'...]. Window is 26. I'm not sure why so many people reference the above code that is not working for me. Any ideas what is wrong here?
The text was updated successfully, but these errors were encountered: