In order to normalize data in a pandas DataFrame I wrote the following functions:
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))
but when I call each of them I get the following warning:
/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)
I can't understand what this is about! Is it likely to affect the results or not? I am calling these functions on a dataset X
where X.shape == (102819, 301)
and type(X) == <class 'pandas.core.frame.DataFrame'>
, which consists of all float values.