ValueError Traceback (most recent call last)
Cell In[109], line 1
----> 1 configuracao.unstack()
File ~\AppData\Roaming\Python\Python311\site-packages\pandas\core\frame.py:8971, in DataFrame.unstack(self, level, fill_value)
8909 """
8910 Pivot a level of the (necessarily hierarchical) index labels.
8911
(...)
8967 dtype: float64
8968 """
8969 from pandas.core.reshape.reshape import unstack
-> 8971 result = unstack(self, level, fill_value)
8973 return result.__finalize__(self, method="unstack")
File ~\AppData\Roaming\Python\Python311\site-packages\pandas\core\reshape\reshape.py:475, in unstack(obj, level, fill_value)
473 if isinstance(obj, DataFrame):
474 if isinstance(obj.index, MultiIndex):
--> 475 return _unstack_frame(obj, level, fill_value=fill_value)
476 else:
477 return obj.T.stack(dropna=False)
File ~\AppData\Roaming\Python\Python311\site-packages\pandas\core\reshape\reshape.py:498, in _unstack_frame(obj, level, fill_value)
496 def _unstack_frame(obj: DataFrame, level, fill_value=None):
...
--> 188 raise ValueError("Index contains duplicate entries, cannot reshape")
190 self.group_index = comp_index
191 self.mask = mask
ValueError: Index contains duplicate entries, cannot reshape
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Pelo que verifiquei o indice realmente possui elementos duplicados, entretando nao consegui pensar em nenhuma forma de corrigilo