Bom dia, ao gerar a comparação, gerou o erro abaixo e eu não consigo identificar o motivo.
plot_comparacao(resultado.index, 'observacao', 'tendencia', 'ruido', resultado, 'Exemplo de Statsmodels')
ERRO:
ValueError Traceback (most recent call last) in ----> 1 plot_comparacao(resultado.index, 'observacao', 'tendencia', 'ruido', resultado, 'Exemplo de Statsmodels')
in plot_comparacao(x, y1, y2, y3, dataset, titulo) 3 ax = plt.subplot(3,1,1) 4 ax.set_title(titulo, fontsize=18, loc="left") ----> 5 sns.lineplot(x=x, y=y1, data = dataset) 6 plt.subplot(3,1,2) 7 sns.lineplot(x=x, y=y2, data = dataset)
~\anaconda3\lib\site-packages\seaborn\relational.py in lineplot(x, y, hue, size, style, data, palette, hue_order, hue_norm, sizes, size_order, size_norm, dashes, markers, style_order, units, estimator, ci, n_boot, seed, sort, err_style, err_kws, legend, ax, *kwargs) 1118 legend="brief", ax=None, *kwargs): 1119 -> 1120 p = LinePlotter( 1121 x=x, y=y, hue=hue, size=size, style=style, data=data, 1122 palette=palette, hueorder=hue_order, hue_norm=hue_norm,
~\anaconda3\lib\site-packages\seaborn\relational.py in init(self, x, y, hue, size, style, data, palette, hue_order, hue_norm, sizes, size_order, size_norm, dashes, markers, style_order, units, estimator, ci, n_boot, seed, sort, err_style, err_kws, legend) 692 sort=True, err_style=None, err_kws=None, legend=None): 693 --> 694 plot_data = self.establish_variables( 695 x, y, hue, size, style, units, data 696 )
~\anaconda3\lib\site-packages\seaborn\relational.py in establish_variables(self, x, y, hue, size, style, units, data) 135 if isinstance(var, str): 136 err = "Could not interpret input '{}'".format(var) --> 137 raise ValueError(err) 138 139 # Extract variable names
ValueError: Could not interpret input 'observacao'