您现在的位置是:首页 > 文章详情

numpy.min(axis)用法

日期:2018-09-04点击:446

选择python,就是选择使用数学工具解决问题。
numpy中的矩阵运算功能可谓强大,但手册不多。规律要自己总结。

numpy.ma.min
numpy.ma.min(obj, axis=None, out=None, fill_value=None, keepdims=)[source]

Return the minimum along a given axis.

Parameters:

axis : {None, int}, optional

Axis along which to operate. By default, axis is None and the flattened input is used.

out : array_like, optional

Alternative output array in which to place the result. Must be of the same shape and buffer length as the expected output.

fill_value : {var}, optional

Value used to fill in the masked values. If None, use the output of minimum_fill_value.

Returns:

amin : array_like

New array holding the result. If out was specified, out is returned.

See also

minimum_fill_value
Returns the minimum filling value for a given datatype.

重点看看 axis,这里没有告诉你none、0、1表示啥。需要查找:

  • none:整个矩阵
  • 0:每列
  • 1:每行
原文链接:https://yq.aliyun.com/articles/635120
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章