estou tentando utilizar o VSCode para reproduzir as atividades em aula, mas me ocorreu um erro na aula 2 quando fui tentar executar a linha de código!
(
Output exceeds the size limit. Open the full output data in a text editor
ValueError Traceback (most recent call last) Cell In [142], line 1 ----> 1 sns.boxplot("medias_por_filme")
File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\seaborn\categorical.py:2231, in boxplot(data, x, y, hue, order, hue_order, orient, color, palette, saturation, width, dodge, fliersize, linewidth, whis, ax, *kwargs) 2224 def boxplot( 2225 data=None, *, x=None, y=None, hue=None, order=None, hue_order=None, 2226 orient=None, color=None, palette=None, saturation=.75, width=.8, 2227 dodge=True, fliersize=5, linewidth=None, whis=1.5, ax=None, 2228 *kwargs 2229 ): -> 2231 plotter = BoxPlotter(x, y, hue, data, order, hueorder, 2232 orient, color, palette, saturation, 2233 width, dodge, fliersize, linewidth) 2235 if ax is None: 2236 ax = plt.gca()
File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\seaborn\categorical.py:785, in BoxPlotter.init(self, x, y, hue, data, order, hueorder, orient, color, palette, saturation, width, dodge, fliersize, linewidth) 781 def init(self, x, y, hue, data, order, hue_order, 782 orient, color, palette, saturation, 783 width, dodge, fliersize, linewidth): --> 785 self.establish_variables(x, y, hue, data, orient, order, hue_order) 786 self.establish_colors(color, palette, saturation) 788 self.dodge = dodge ... --> 516 plot_data = [np.asarray(d, float) for d in plot_data] 518 # The group names will just be numeric indices 519 group_names = list(range(len(plot_data)))
ValueError: could not convert string to float: 'medias_por_filme')