I have a list of the following type. I want to normalize this list using the function I have written. for example- normalize (). I want to pass the second innermost list to the normalize(). I want to do it one list at a time.
[[['179.0', '77.0'],
['186.0', '93.0'],
['175.0', '72.0'],
['195.0', '68.0']],
[['178.0', '76.0'],
['185.0', '93.0'],
['164.0', '91.0'],
['155.0', '117.0']],
['161.0', '127.0'],
['191.0', '200.0'],
['190.0', '241.0'],
['194.0', '68.0']],
[['176.0', '77.0'],
['183.0', '93.0'],
['163.0', '91.0'],
['155.0', '117.0']]......]
The code I tried normalizes the whole list. I want to do it row-wise. I have tried following
normalized_data = [normalize3(data) for data in load_pose_data()]
I would appreciate any help. Thank you
[['179.0', '77.0'], ['186.0', '93.0'], ['175.0', '72.0'], ['195.0', '68.0']]?