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

[BUG] Plot for a one-observation time series #62

Closed
AzulGarza opened this issue Oct 4, 2022 · 0 comments · Fixed by #64
Closed

[BUG] Plot for a one-observation time series #62

AzulGarza opened this issue Oct 4, 2022 · 0 comments · Fixed by #64

Comments

@AzulGarza
Copy link
Member

When a time series only has one observation, the HierarchicalPlot.plot_hierarchically_linked_series fails. The error arises because of the following line,

df_plot = Y_df.loc[series].set_index('ds')

In that case, Y_df.loc[series] returns a pd.Series object instead of a pd.DataFrame object and therefore the index cannot be set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant