code: def with_index(self, new_index):
          
          return TimeSeriesRDD(None, None, self._jtsrdd.withIndex(new_index._jdt_index), self.ctx)
docs: Returns a TimeSeriesRDD rebased on top of a new index.  Any timestamps that exist in the new
          index but not in the existing index will be filled in with NaNs.
          
          Parameters
          ----------
          new_index : DateTimeIndex