Hello,
I am running a simple text classification task in three classes. My dataset has the correct format for this task: two columns (text, target). Both are containing string format data. My dataset seems to be valid and I already performed this task few weeks ago and every thing was working well.
Now I get this error:
File â/app/env/lib/python3.10/site-packages/autotrain/preprocessor/text.pyâ, line 83, in prepare
train_df[:, âautotrain_labelâ] = train_df[âautotrain_labelâ].astype(str)
File â/app/env/lib/python3.10/site-packages/pandas/core/frame.pyâ, line 4311, in setitem
self._set_item(key, value)
File â/app/env/lib/python3.10/site-packages/pandas/core/frame.pyâ, line 4527, in _set_item
key in self.columns
File â/app/env/lib/python3.10/site-packages/pandas/core/indexes/base.pyâ, line 5358, in contains
hash(key)
TypeError: unhashable type: âsliceâ
I feed the Auto Train with a .csv file. I tried several times several days and all I get is this error. The data is like below:
text,target
Global Stocks and Commodities Rally on First Trading Day of 2010,positive
Dollar Slumps Amid Worldwide Manufacturing Improvement,indecisive
âŚ,âŚ
Thank your very much for any help!