When using argmax() it returns:
The current behaviour of
Series.argmaxis deprecated, useidxmaxinstead. The behavior ofargmaxwill be corrected to return the positional maximum in the future. For now, useseries.values.argmaxornp.argmax(np.array(values))to get the position of the maximum row. """Entry point for launching an IPython kernel.
Any ideas what this means? I have used np.argmax(np.array(values)) to get the position of the maximum row but it just returns the max value. idxmax returns another error.