📌  相关文章
📜  z-score - Python 代码示例

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

代码示例1
# Computing along a specific axis, omitting nan values

>>> x = np.array([[25.11, 30.10, np.nan, 32.02, 43.15],
              ​[14.95, 16.06, 121.25, 94.35, 29.81]]) stats.zscore(x, axis=1, nan_policy='omit')
>>> array([[-1.13490897, -0.37830299,         nan, -0.08718406,  1.60039602],
      ​[-0.91611681, -0.89090508,  1.4983032 ,  0.88731639, -0.5785977 ]])