One of my pandas dataframe column is a list object of m columns, each row looks like this
'List(0.42, 0.24, 0.78,...)' with a list of n elements wrapped by quote marks. Dtype for this column is Object.
I need to convert this column into a m X n np array. So far I tried applying np.fromstring(col content) but it's mostly returning 'ValueError: string size must be a multiple of element size'. It did work for the first row though.
How to appropriately convert this List object column to an array?
list, or even a string that evals tolist. It's missing the[].