matriz_esparsa = pd.SparseDataFrame(bag_of_words, columns=vetorizar.get_feature_names())
O comando acima gera o erro abaixo:
C:\Users\fbren\AppData\Local\Temp\ipykernel_15140\2990943635.py:1: FutureWarning: The SparseDataFrame class is removed from pandas. Accessing it from the top-level namespace will also be removed in the next version. matriz_esparsa = pd.SparseDataFrame(bag_of_words, columns=vetorizar.get_feature_names_out())
TypeError Traceback (most recent call last) Input In [18], in <cell line: 1>() ----> 1 matriz_esparsa = pd.SparseDataFrame(bag_of_words, columns=vetorizar.get_feature_names_out())
TypeError: SparseDataFrame() takes no arguments
Qual função substitui a SparseDataFrame() ??