Eu executo o seguite comando como passado na aula:
import pandas_profiling
pandas_profiling.ProfileReport(df)
e o colab me devolve o seguinte erro:
Summarize dataset: 0%
0/16 [00:01<?, ?it/s]
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
/usr/local/lib/python3.9/dist-packages/IPython/core/formatters.py in __call__(self, obj)
343 method = get_real_method(obj, self.print_method)
344 if method is not None:
--> 345 return method()
346 return None
347 else:
28 frames
/usr/local/lib/python3.9/dist-packages/pandas_profiling/model/pandas/utils_pandas.py in weighted_median(data, weights)
11 data = np.array(data)
12 if not isinstance(weights, np.ndarray):
---> 13 weights = np.array(weights)
14
15 s_data, s_weights = map(np.sort, [data, weights])
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
já procurei solução e não consigo resolver.