Change conversion from pandas to numpy
Created by: lmalina
Starting from pandas version 0.24.0 the recommended way convert from pandas.DataFrame, Series or Index to numpy.array is .to_numpy(). Conversion by .values will be discontinued at some point.