-
Notifications
You must be signed in to change notification settings - Fork 918
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
[BUG] converting Pandas DataFrame into TimeSeries object #1522
Comments
It is hard to infer what is going on from the provided info; however, here is a minimal example that should work:
If that works and your code is still not working, you should provide more information about your code. I also will recommend reinstalling darts or creating a new venv, conda env, etc. To avoid having to create a new environment, you can force reinstall darts using
|
+1, the code |
I ran into same issue.
Error message:
solutions:
|
Thank you @mhadi4194 for pinpointing the source of the error and suggesting a solution, I opened a PR with a fix. |
Describe the bug
Hi, I have a problem with converting Pandas DataFrame into Darts TimeSeries object namely, my Pandas DataFrame consists of the datetime64 index and 4 columns of float64 data I want to have in the TimeSeries object. After executing below code, I get an error:
coordinate component has dimensions ('_field',), but these are not a subset of the DataArray dimensions ('_time', 'component', 'sample')
To Reproduce
TSDF = TimeSeries.from_dataframe(modeldf)
Expected behavior
Getting a Darts TimeSeries object.
System (please complete the following information):
Additional context

Kind regards
Nikodem
The text was updated successfully, but these errors were encountered: