I have a pandas DataFrame containing a column called 'X' containing a list of 300 doubles and a column called 'label' when trying to run:
cls = SVC()
cls.fit(miniset.loc[:,'X'],miniset.loc[:,'label'])
I get the error:
ValueError: setting an array element with a sequence.
Any idea how to fix it?
Thanks
Head of my DataFrame
label X
0 0 [-1.1990741, 0.98229957, -2.7413394, 0.5774205...
1 1 [0.10277234, 1.8292198, -1.8241594, 0.07206603...
2 0 [-0.26603428, 1.8654639, -2.2495375, -0.695124...
3 0 [-1.1662953, 3.0714324, -3.4975948, 0.01011618...
4 0 [-0.13769871, 1.9866339, -1.9885212, -0.830097...