'ValueError: You must pass a freq argument as current index has none

I'm using pycaret.time_series alpha module but I have this problem avec launching my experiment. I think this is internal to the module. Can anyone help ?

`from pycaret.time_series import *

 exp_name = setup(data = df ,index='ds', target='y', fold = 5, fh = 15)`

and i got this :


ValueError Traceback (most recent call last) c:\Users\elsem\Python\Andre_Coach\ts.ipynb Cell 46' in <cell line: 1>() ----> 1 exp_name = setup(data = df ,index='ds', target='y', fold = 5, fh = 15)

enter image description hereenter image description here

my df looks like this:

enter image description here



Solution 1:[1]

Try converting the ds column to datetime manually outside pycaret before feeding to setup. That should hopefully resolve the issue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nikhil Gupta