I have a dataframe that has two columns:
name, [sizes]
Example
one, [1,2,3]
two, [4,5,6]
I would like to convert values to array for further processing.
x_data = list(set(df.name.values))
y_data = [df.query('name == @h').sizes.values for h in x_data]
This returns:
[array([list([1, 2, 3])], dtype=object), array([list([4,5,6])], dtype=object)]
Is there a way to flatten this out and have it as a simple array[] instead of array[list[]]?