My input is a pandas dataframe with strings inside:
>>> data
218.0
221.0
222.0
224.0 71,299,77,124
227.0 50,283,81,72
229.0
231.0 84,349
233.0
235.0
240.0 53,254
Name: Q25, dtype: object
now i want a shaped ( .reshape(-1,2) ) numpy array of ints for every row like that:
>>> data
218.0 []
221.0 []
222.0 []
224.0 [[71,299], [77,124]]
227.0 [[50,283], [81,72]]
229.0 []
231.0 [[84,349]]
233.0 []
235.0 []
240.0 [[53,254]]
Name: Q25, dtype: object
i dont know how to get there by vector operations. can someone help?