https://github.com/nixtla logo
#neural-forecast
Title
# neural-forecast
y

Yang Guo

06/13/2023, 5:04 PM
When running nf.predict() for vanilla transformer, I got "can only concatenate str (not "pandas._libs.tslibs.offsets.Hour") to str", any hints? I am following xxxx-xx-xx xxxxxx format. The fit function works fine though. I think there is some issue with the format.
Here is the reference
c

Cristian (Nixtla)

06/13/2023, 6:55 PM
Hi @Yang Guo! Can you add a
<http://pd.to|pd.to>_datetime()
to your
ds
column before the
fit
function?
We are working on adding a protection to facilitate the debugging
y

Yang Guo

06/13/2023, 7:01 PM
Thank you! It works now. I realized that the dataset I used though following the format is still in the string type
🎉 1
2 Views