ptp now needs to be called as `np.ptp(ar)` instead of `ar.ptp()`
ptp now needs to be called as
np.ptp(ar)instead ofar.ptp()