Skip to content
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

Issue with "getDailyVol" function #5

Closed
Chetanbuye12 opened this issue Aug 3, 2018 · 1 comment
Closed

Issue with "getDailyVol" function #5

Chetanbuye12 opened this issue Aug 3, 2018 · 1 comment

Comments

@Chetanbuye12
Copy link

Chetanbuye12 commented Aug 3, 2018

No description provided.

@bastulli
Copy link

bastulli commented Aug 7, 2018

You need to drop any duplicates in your DataFrame's index. For example, after I generated volume bars, i need to check if there are any duplicates in my index. I found this to be an issue when working with raw trade data. I do not have this issue with re-sampled closed bars in the 1min or above.

temp = len(v_bar_df) v_bar_df = v_bar_df[~v_bar_df.index.duplicated(keep='first')] print('Duplicates Droped from volumebars | '+str(len(v_bar_df)-temp))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants