Olá, pessoal
Alguém poderia me auxiliar? Ao executar o sns.scatterplot indicado na aula (sns.scatterplot(x= 'valor_da_conta', y= 'gorjeta', data=gorjetas)) está aparecendo o erro a seguir:
ValueError Traceback (most recent call last) Input In [31], in <cell line: 1>() ----> 1 sns.scatterplot(x= 'valor_da_conta', y= 'gorjeta', data=gorjetas)
File C:\Anaconda\lib\site-packages\seaborn\relational.py:1328, in scatterplot(x, y, hue, style, size, data, palette, hue_order, hue_norm, sizes, size_order, size_norm, markers, style_order, x_bins, y_bins, units, estimator, ci, n_boot, alpha, x_jitter, y_jitter, legend, ax, *kwargs) 1319 def scatterplot(x=None, y=None, hue=None, style=None, size=None, data=None, 1320 palette=None, hue_order=None, hue_norm=None, 1321 sizes=None, size_order=None, size_norm=None, (...) 1325 alpha="auto", x_jitter=None, y_jitter=None, 1326 legend="brief", ax=None, *kwargs): -> 1328 p = ScatterPlotter( 1329 x=x, y=y, hue=hue, style=style, size=size, data=data, 1330 palette=palette, hueorder=hue_order, hue_norm=hue_norm, 1331 sizes=sizes, size_order=size_order, size_norm=size_norm, 1332 markers=markers, style_order=style_order, 1333 x_bins=x_bins, y_bins=y_bins, 1334 estimator=estimator, ci=ci, n_boot=n_boot, 1335 alpha=alpha, x_jitter=x_jitter, y_jitter=y_jitter, legend=legend, 1336 ) 1338 if ax is None: 1339 ax = plt.gca()
File C:\Anaconda\lib\site-packages\seaborn\relational.py:851, in ScatterPlotter.init(self, x, y, hue, size, style, data, palette, hueorder, hue_norm, sizes, size_order, size_norm, dashes, markers, style_order, x_bins, y_bins, units, estimator, ci, n_boot, alpha, x_jitter, y_jitter, legend) 841 def init(self, 842 x=None, y=None, hue=None, size=None, style=None, data=None, 843 palette=None, hue_order=None, hue_norm=None, (...) 848 alpha=None, x_jitter=None, y_jitter=None, 849 legend=None): --> 851 plot_data = self.establish_variables( 852 x, y, hue, size, style, units, data 853 ) 855 self.defaultsize_range = ( 856 np.r_[.5, 2] * np.square(mpl.rcParams["lines.markersize"]) 857 ) 859 self.parse_hue(plot_data["hue"], palette, hue_order, hue_norm)
File C:\Anaconda\lib\site-packages\seaborn\relational.py:142, in RelationalPlotter.establishvariables(self, x, y, hue, size, style, units, data) 140 if isinstance(var, string_types): 141 err = "Could not interpret input '{}'".format(var) --> 142 raise ValueError(err) 144 # Extract variable names 145 x_label = getattr(x, "name", None)
ValueError: Could not interpret input 'valor_da_conta'