ERROR - qlib.workflow - [utils.py:38] - An exception has been raised[ValueError: can't find a freq from [Freq(day)] that can resample to 1min!].

See original GitHub issue

To Reproduce

df = D.features([code], [‘$high’, ‘$low’, ‘$close’, ‘$open’,‘$volume’,‘$money’], start_time=‘%s 09:31:00’%str(start_time)[:10], end_time=‘%s 15:00:00’%str(end_time)[:10], freq=‘1min’, disk_cache=0)

Screenshot

image

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information and paste them here directly.

  • Qlib version:Newest
  • Python version:3.7.9
  • OS (Windows, Linux, MacOS):MacOS
  • Commit number (optional, please provide it if you are using the dev version):

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
zhuprcommented, Feb 23, 2022

@Waterkin Hi, Is provider_uri a 1min dataset ? Get sample 1min data ref: python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data_1min --region cn -- interval 1min

0reactions
you-n-gcommented, Mar 2, 2022

Sorry, Qlib didn’t support automatically resampling now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while resampling from daily to monthly frequency
I have a csv data with daily frequency as shown below: ... column is DATE column is converted to monthly frequency by missing...
Read more >
pandas.DataFrame.resample — pandas 1.5.2 documentation
Resample time-series data. Convenience method for frequency conversion and resampling of time series. The object must have a datetime-like index ( DatetimeIndex ...
Read more >
ERROR - qlib.workflow - [utils.py:38] - An exception has been raised ...
ERROR - qlib.workflow - [utils.py:38] - An exception has been raised[ValueError: can't find a freq from [Freq(day)] that can resample to 1min!]. ·...
Read more >
Time series resampling 'KeyError' - Dataiku Community
Hi @valentinaprotti,. Welcome to the community! Could you share the whole error message? In your screenshot is missing the part where the ...
Read more >
How To Resample Time Series Data Using Pandas ... - YouTube
You'll most likely encounter the requirement to change the frequency or time period when reporting time series data to derive a more ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found