Equivalent of np.ptp()?

I think there is no direct equivalent, but you can easily implement the function with

def ptp(t, axis):
  return t.max(axis).values - t.min(axis).values
1 Like