本文簡要介紹 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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。