Boa tarde estou no vscode, e deu esse erro ao rodar o gradient https://cursos.alura.com.br/course/data-visualization-estilizacao-tabelas-python/task/128525
Tentei instalar o matplotlib mas não fui feliz. Poderia me orientar ?
Esse foi o erro:
ImportError Traceback (most recent call last)
File ~\AppData\Roaming\Python\Python311\site-packages\IPython\core\formatters.py:344, in BaseFormatter.__call__(self, obj)
342 method = get_real_method(obj, self.print_method)
343 if method is not None:
--> 344 return method()
345 return None
346 else:
File c:\Users\Badi\AppData\Local\Programs\Python\Python311\Lib\site-packages\pandas\io\formats\style.py:408, in Styler._repr_html_(self)
403 """
404 Hooks into Jupyter notebook rich display system, which calls _repr_html_ by
405 default if an object is returned at the end of a cell.
406 """
407 if get_option("styler.render.repr") == "html":
--> 408 return self.to_html()
409 return None
File c:\Users\Badi\AppData\Local\Programs\Python\Python311\Lib\site-packages\pandas\io\formats\style.py:1348, in Styler.to_html(self, buf, table_uuid, table_attributes, sparse_index, sparse_columns, bold_headers, caption, max_rows, max_columns, encoding, doctype_html, exclude_styles, **kwargs)
1345 obj.set_caption(caption)
1347 # Build HTML string..
-> 1348 html = obj._render_html(
1349 sparse_index=sparse_index,
1350 sparse_columns=sparse_columns,
1351 max_rows=max_rows,
...
96 yield plt, mpl
97 else:
---> 98 raise ImportError(f"{func.__name__} requires matplotlib.")
ImportError: background_gradient requires matplotlib