1

为了规范化 pandas DataFrame 中的数据,我编写了以下函数:

def zscore(data):
    data = (data - data.mean())/data.std(ddof=0)
    return data

def normalize(x):
    return (x - x.min(axis=0)) / (x.max(axis=0) - x.min(axis=0))

但是当我打电话给他们每个人时,我都会收到以下警告:

/usr/lib/python2.7/dist-packages/numexpr/necompiler.py:742: DeprecationWarning: using `oa_ndim == 0` when `op_axes` is NULL is deprecated. Use `oa_ndim == -1` or the MultiNew iterator for NumPy <1.8 compatibility


return compiled_ex(*arguments, **kwargs)
/usr/lib/python2.7/dist-packages/numexpr/necompiler.py:742: DeprecationWarning: using `oa_ndim == 0` when `op_axes` is NULL is deprecated. Use `oa_ndim == -1` or the MultiNew iterator for NumPy <1.8 compatibility


return compiled_ex(*arguments, **kwargs)

/usr/lib/python2.7/dist-packages/numexpr/necompiler.py:742: DeprecationWarning: using `oa_ndim == 0` when `op_axes` is NULL is deprecated. Use `oa_ndim == -1` or the MultiNew iterator for NumPy <1.8 compatibility


return compiled_ex(*arguments, **kwargs)

我看不懂这是怎么回事!会不会影响结果?我在由所有浮点值组成的数据集XwhereX.shape == (102819, 301)和上调用这些函数。type(X) == <class 'pandas.core.frame.DataFrame'>

4

0 回答 0