code: def differences(self, n):
          
          return TimeSeriesRDD(None, None, self._jtsrdd.differences(n), self.ctx)
docs: Returns a TimeSeriesRDD where each time series is differenced with the given order.
          
          The new RDD will be missing the first n date-times.
          
          Parameters
          ----------
          n : int
              The order of differencing to perform.