-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ml.util.get_daily_vol --> ValueError: operands could not be broadcast together #505
Comments
@fmantesso I was hitting this same issue and what was happening in my case was that I had duplicated entries in the index. (I'm using custom code to generate bars)
I took a look at your posted CSV and it has the same issue, check it out. Might want to look into fixing that and see if it works when there are no more dupes.
|
Thank you for the help @nathanleclaire! Hi @fmantesso, does this error appear when you use the method on a dataset with no index duplicates? |
Hi Guys,
I am having an issue running: daily_vol = ml.util.get_daily_vol(close=data['close'], lookback=50)
ValueError: operands could not be broadcast together with shapes (3231,) (3213,)
Data used:
data.csv
@Jackal08
@PanPip
The text was updated successfully, but these errors were encountered: