Skip to content
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

Merged
merged 9 commits into from
Aug 9, 2023
3 changes: 3 additions & 0 deletions darts/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,9 @@ def from_dataframe(
if not time_index.name:
time_index.name = time_col if time_col else DIMS[0]

if series_df.columns.name:
series_df.columns.name = None

xa = xr.DataArray(
series_df.values[:, :, np.newaxis],
dims=(time_index.name,) + DIMS[-2:],
Expand Down