I am trying to apply a simple lambda function to rows on a 2D array, but I cannot quite get it to work.
Problem as a MWE:
# Data D = np.hstack((np.ones