I have this piece of code:
def substract_mean(self, group_point):
for i, a in enumerate(group_point):
group_point[i] = group_point[i] - self.mean_global[i]
return group_point
And I received the following error message:
group_point[i] = group_point[i] - self.mean_global[i]
TypeError: 'map' object is not subscriptable