<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def duration(self):
 """Duration of this series in seconds :type: `~astropy.units.Quantity` scalar """

        return units.Quantity(self.span[1] - self.span[0], self.xunit,
                              dtype=float)