I have the following panda dataframe:
df = pd.DataFrame({'trial_time': ['0', '0',
'1', '1'],
'Max Speed': [1., 2, 3, 4]})
I want to create a dataframe that would for each unique value in trial_time bin/grab the corresponding values in an array. So 0 -> [1,2] 1 -> [3,4]
I read through pandas groupby documentation, but I'm still a bit stuck...