Ao executar a linha treino_y.value_counts(), recebo o seguinte erro:
O que posso estar fazendo de errado?
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-35-6d6be89785d8> in <module>()
----> 1 treino_y.value_counts()
/usr/local/lib/python3.6/dist-packages/pandas/core/generic.py in __getattr__(self, name)
5177 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5178 return self[name]
-> 5179 return object.__getattribute__(self, name)
5180
5181 def __setattr__(self, name, value):
AttributeError: 'DataFrame' object has no attribute 'value_counts'