本文简要介绍 python 语言中 numpy.ma.transpose
的用法。
用法:
ma.transpose(a, axes=None)
置换数组的维度。
此函数完全等同于
numpy.transpose
。例子:
>>> import numpy.ma as ma >>> x = ma.arange(4).reshape((2,2)) >>> x[1, 1] = ma.masked >>> x masked_array( data=[[0, 1], [2, --]], mask=[[False, False], [False, True]], fill_value=999999)
>>> ma.transpose(x) masked_array( data=[[0, 2], [1, --]], mask=[[False, False], [False, True]], fill_value=999999)
相关用法
- Python numpy ma.indices用法及代码示例
- Python numpy ma.zeros用法及代码示例
- Python numpy ma.diff用法及代码示例
- Python numpy ma.mask_rowcols用法及代码示例
- Python numpy ma.where用法及代码示例
- Python numpy ma.zeros_like用法及代码示例
- Python numpy ma.notmasked_contiguous用法及代码示例
- Python numpy ma.concatenate用法及代码示例
- Python numpy ma.apply_along_axis用法及代码示例
- Python numpy ma.compress_rowcols用法及代码示例
- Python numpy ma.vstack用法及代码示例
- Python numpy ma.atleast_3d用法及代码示例
- Python numpy ma.count用法及代码示例
- Python numpy ma.fix_invalid用法及代码示例
- Python numpy ma.mean用法及代码示例
- Python numpy ma.argmax用法及代码示例
- Python numpy ma.empty_like用法及代码示例
- Python numpy ma.hstack用法及代码示例
- Python numpy ma.isMA用法及代码示例
- Python numpy ma.argmin用法及代码示例
- Python numpy ma.asarray用法及代码示例
- Python numpy ma.set_fill_value用法及代码示例
- Python numpy ma.is_mask用法及代码示例
- Python numpy ma.is_masked用法及代码示例
- Python numpy ma.cumsum用法及代码示例
注:本文由纯净天空筛选整理自numpy.org大神的英文原创作品 numpy.ma.transpose。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。