Apply a lambda function to a 2D array and receive back a 1D array

前端 未结 0 413
后悔当初
后悔当初 2021-01-11 20:11

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题