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

have a try,got one error report #1

Open
shuxinjin opened this issue Jun 6, 2019 · 2 comments
Open

have a try,got one error report #1

shuxinjin opened this issue Jun 6, 2019 · 2 comments

Comments

@shuxinjin
Copy link

Saving to pickle

0%| | 0/3075922 [00:00<?, ?it/s]
Traceback (most recent call last):
File "C:\milize\Reconize\Adv_Fin_ML\Examples\volume_bar.py", line 254, in
col_index=3
File "C:\milize\Reconize\Adv_Fin_ML\Examples\volume_bar.py", line 81, in create_bars
cur_bar_end = cur_bar_start_ts + pd.Timedelta(bar_volume, unit='seconds')
File "pandas_libs\tslibs\timedeltas.pyx", line 1020, in pandas._libs.tslibs.timedeltas.Timedelta.new
File "pandas_libs\tslibs\timedeltas.pyx", line 136, in pandas._libs.tslibs.timedeltas.convert_to_timedelta64
File "pandas_libs\tslibs\timedeltas.pyx", line 225, in pandas._libs.tslibs.timedeltas.cast_from_unit
ValueError: cannot cast unit seconds

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
@shuxinjin and others