Function application over numpy's matrix row/column

后端 未结 4 1280
夕颜
夕颜 2020-12-02 13:36

I am using Numpy to store data into matrices. Coming from R background, there has been an extremely simple way to apply a function over row/columns or both of a matrix.

4条回答
  •  心在旅途
    2020-12-02 14:05

    Pandas is very useful for this. For instance, DataFrame.apply() and groupby's apply() should help you.

提交回复
热议问题