📜  numpy 唯一轴 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:13.404000             🧑  作者: Mango

代码示例1
#As of NumPy 1.13, one can simply choose the axis for selection of unique values in any N-dim array. To get unique rows, one can do:
import numpy as np
unique_rows = np.unique(original_array, axis=0)