Dataframe is like that
and I want to extract that row values into same dataframe.
df["row"][0] values like
[{'acceleration': 0, 'distance': 0.917, 'energy_cost': 4.644, 'estimated_energy': 76.323, 'half': 1, 'metabolic_power': 17.043, 'pos_x': -27.14, 'pos_y': 50.03, 'speed': 3.67, 'video_second': 5.0}, {'acceleration': 0, 'distance': 0.848, 'energy_cost': 4.647, 'estimated_energy': 70.546, 'half': 1, 'metabolic_power': 15.753, 'pos_x': -27.988, 'pos_y': 50.022, 'speed': 3.39, 'video_second': 5.25}, {'acceleration': 0, 'distance': 0.848, 'energy_cost': 3.978, 'estimated_energy': 60.39, 'half': 1, 'metabolic_power': 13.485, 'pos_x': -28.835, 'pos_y': 50.015, 'speed': 3.39, 'video_second': 5.5}, {'acceleration': 0, 'distance': 0.848, 'energy_cost': 4.647, 'estimated_energy': 70.546, 'half': 1, 'metabolic_power': 15.753, 'pos_x': -29.682, 'pos_y': 50.008, 'speed': 3.39, 'video_second': 5.75}, {'acceleration': 0, 'distance': 0.848, 'energy_cost': 4.647, 'estimated_energy': 70.546, 'half': 1, 'metabolic_power': 15.753, 'pos_x': -30.53, 'pos_y': 50.0, 'speed': 3.39, 'video_second': 6.0}, {'acceleration': 0.445, 'distance': 0.959, 'energy_cost': 4.647, 'estimated_energy': 79.805, 'half': 1, 'metabolic_power': 17.82, 'pos_x': -31.345, 'pos_y': 50.505, 'speed': 3.835, 'video_second': 6.25}, {'acceleration': 0, 'distance': 0.959, 'energy_cost': 5.91, 'estimated_energy': 101.505, 'half': 1, 'metabolic_power': 22.666, 'pos_x': -32.16, 'pos_y': 51.01, 'speed': 3.835, 'video_second': 6.5}, {'acceleration': 0.0, 'distance': 0.959, 'energy_cost': 4.647, 'estimated_energy': 79.805, 'half': 1, 'metabolic_power': 17.82, 'pos_x': -32.975, 'pos_y': 51.515, 'speed': 3.835, 'video_second': 6.75}, {'acceleration': 0, 'distance': 0.959, 'energy_cost': 4.644, 'estimated_energy': 79.761, 'half': 1, 'metabolic_power': 17.81, 'pos_x': -33.79, 'pos_y': 52.02, 'speed': 3.835, 'video_second': 7}]
Desired dataframe is like id, number, acc, distance, ... and sorted with video second.
How can I do that?
