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

get_time_bars returning incorrect unix timestamp #516

Open
mdalvi opened this issue Mar 14, 2022 · 0 comments
Open

get_time_bars returning incorrect unix timestamp #516

mdalvi opened this issue Mar 14, 2022 · 0 comments

Comments

@mdalvi
Copy link

mdalvi commented Mar 14, 2022

Upon running ml.data_structures.get_time_bars on following tick data, returns unix timestamp with incorrect values

# mlfinlab version 1.5.0

df_tmp = pd.read_excel('temp_tick.xlsx')
ml.data_structures.get_time_bars(df_tmp[['date_time', 'price', 'volume']], resolution='D', num_units=1, batch_size=1000000, verbose=False)

Tick data sample available on dropbox

image

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

1 participant