code: def pairwise_diff(values):
      "Differences between a value and the next value in a sequence"
      return numpy.array([x - y for x, y in pairwise(values)]f pairwise_diff(values):
      "Differences between a value and the next value in a sequence"
      return numpy.array([x - y for x, y in pairwise(values)])
docs: Differences between a value and the next value in a sequence