code: def duration(self):
          
          return units.Quantity(self.span[1] - self.span[0], self.xunit,
                                dtype=float)
docs: Duration of this series in seconds
  
          :type: `~astropy.units.Quantity` scalar