Python數據分析丨numpy基本操作,瞭解一下?

一個栗子 >>>import numpy as np >>>a = np.arange(15).reshape(3, 5) >>>a array([[ 0, 1, 2, 3, 4], [5, 6, 7, 8, 9], [10, 11, 12, 13, 14]]) >>>a.shape (3, 5) >>>a.ndim # 數組軸的個數,在python的世界中,
相關文章
相關標籤/搜索