code: def to_instants(self):
          
          jrdd = self._jtsrdd.toInstants(-1).map( \
              self.ctx._jvm.com.cloudera.sparkts.InstantToBytes())
          return RDD(jrdd, self.ctx, _InstantDeserializer())
docs: Returns an RDD of instants, each a horizontal slice of this TimeSeriesRDD at a time.
  
          This essentially transposes the TimeSeriesRDD, producing an RDD of tuples of datetime and
          a numpy array containing all the observations that occurred at that time.