def nanptp(values, axis=0, skipna=True):
    nmax = nanops.nanmax(values, axis, skipna)
    nmin = nanops.nanmin(values, axis, skipna)
    warnings.warn('Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.', FutureWarning, stacklevel=4)
    return (nmax - nmin)
def nanptp(values, axis=0, skipna=True):
    nmax = nanops.nanmax(values, axis, skipna)
    nmin = nanops.nanmin(values, axis, skipna)
    warnings.warn('Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.', FutureWarning, stacklevel=4)
    return (nmax - nmin)