I have a pandas data frame including some columns, let say 'a', 'b' and 'c', containing numpy arrays.
I would like to concatenate the np arrays from different columns obtaining a single np array for each row.
Is there an efficient way to do this avoiding iteration?
df['a'].to_numpy(). I expect it is a 1d object dtype array. If the subarrays are all the same size, they can bestackinto one 2d array. But if different, you are stuck with working on separate arrays. This needs a minimal reproducible example