Please correct me If I am wrong
I saw an issue, please observe the following code
State(‘df_columns_dropdown_date_tsa’, ‘value’), ],
def update_graph(n_clicks, df_columns_dropdown_label_tsa, df_columns_dropdown_date_tsa):
fig_seasonality_decompose = decomposition_tsa(df, df_columns_dropdown_label_tsa, df_columns_dropdown_date_tsa) return fig_seasonality_decompose
I have one output, as a graph, I put a square bracket around this single output unintentionally, and when I run the code there was an error that
“Expected class tuple or str list but received Plotly go figure”
My question is that why is it so?
It was always my practice to put even single output in square brackets. It took a long for me to remove the brackets and it worked as I did not think about it.