-
Notifications
You must be signed in to change notification settings - Fork 917
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
fix: remove dataframe.columns name to avoid error with xarray #1938
Conversation
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #1938 +/- ##
==========================================
- Coverage 93.87% 93.87% -0.01%
==========================================
Files 132 132
Lines 12673 12661 -12
==========================================
- Hits 11897 11885 -12
Misses 776 776
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @madtoinou , looks good 👍
Can you add a test and a changelog entry? Then we can merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed it before, but we need to make sure that we don't mutate the original df.columns
.
Co-authored-by: Dennis Bader <[email protected]>
…/darts into fix/ts_from_df_index_col
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 You can merge when the tests have passed 🚀
Fixes #1522.
Summary
xarray constructor raise an error when the
Index
containing the name of the columns has aname
(which not necessarily the name of the index itself, even if it can be displayed as such). Simply setting this name toNone
solve the problem without impacting the attributes of the generatedTimeSeries
.