Focus on the 'Image_data' column. I want to split the arrays present at each index into different columns. The arrays are of different length at each index. So, I need to split according to the longest array. If one array is smaller than the longest array, it should place '0.0' in that extra column for smaller array.
Methods I have tried:
- I have tried Padding the arrays using the length of the longest array.
- pd.DataFrame(df.iloc[:,0].to_list())
Errors:
pad_width
must be of integral type.- Error of no type (tells me ErrorType '')
Can someone help me split the arrays into different columns??