Question: 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 here](https://i.stack.imgur.com/2gzZv.png)](https://i.stack.imgur.com/2gzZv.png)[![enter image description here](https://i.stack.imgur.com/CeYok.png)](https://i.stack.imgur.com/CeYok.png)

my df looks like this:

[![enter image description here](https://i.stack.imgur.com/kPs3J.png)](https://i.stack.imgur.com/kPs3J.png)

Answer: 
You need to see the type of your data by using

```
df.dtypes

```

check the type of ds that should be

```
ds        datetime64[ns] 

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