def plot_comparacao(x, y1, y2, y3, dataset, titulo):
plt.figure(figsize=(16,12))
ax = plt.subplot(3,1,1)
ax.set_title(titulo, fontsize=18, loc='left')
sns.lineplot(x=x, y=y1, data=dataset)
plt.subplot(3,1,2)
sns.lineplot(x=x, y=y2, data=dataset)
plt.subplot(3,1,3)
sns.lineplot(x=x, y=y3, data=dataset)
ax = ax
plot_comparacao('mes', 'vendas', 'aumento', 'acelaracao', alucar, 'Análise das Vendas da Alucar')
Output exceeds the size limit. Open the full output data in a text editor
ValueError Traceback (most recent call last) Célula: 26 in <cell line: 1>() ----> 1 plot_comparacao('mes', 'vendas', 'aumento', 'acelaracao', alucar, 'Análise das Vendas da Alucar')
Célula: 26 in plot_comparacao(x, y1, y2, y3, dataset, titulo) 7 sns.lineplot(x=x, y=y2, data=dataset) 8 plt.subplot(3,1,3) ----> 9 sns.lineplot(x=x, y=y3, data=dataset) 10 ax = ax
Erro ValueError Traceback (most recent call last) Célula: 26 in <cell line: 1>() ----> 1 plot_comparacao('mes', 'vendas', 'aumento', 'acelaracao', alucar, 'Análise das Vendas da Alucar')
Célula: 26 in plot_comparacao(x, y1, y2, y3, dataset, titulo) 7 sns.lineplot(x=x, y=y2, data=dataset) 8 plt.subplot(3,1,3) ----> 9 sns.lineplot(x=x, y=y3, data=dataset) 10 ax = ax
46, in deprecatepositional_args..inner_f(args, *kwargs) 36 warnings.warn( 37 "Pass the following variable{} as {}keyword arg{}: {}. " 38 "From version 0.12, the only valid positional argument " (...) 43 FutureWarning 44 ) 45 kwargs.update({k: arg for k, arg in zip(sig.parameters, args)}) ---> 46 return f(**kwargs)
692, 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) 677 @deprecatepositional_args 678 def lineplot( 679 *, ... 908 909 # Raise when data object is present and a vector can't matched 910 if isinstance(data, pd.DataFrame) and not isinstance(val, pd.Series):
ValueError: Could not interpret value acelaracao
for parameter y