def pad(self, pad_width, **kwargs):
<EOL>kwargs.setdefault('<STR_LIT>', '<STR_LIT>')<EOL>if isinstance(pad_width, int):<EOL><INDENT>pad_width = (pad_width,)<EOL><DEDENT>new = numpy.pad(self, pad_width, **kwargs).view(type(self))<EOL>new.__metadata_finalize__(self)<EOL>new._unit = self.unit<EOL>new.x0 -= self.dx * pad_width[<NUM_LIT:0>]<EOL>return new<EOL>
Pad this series to a new size

        Parameters
        ----------
        pad_width : `int`, pair of `ints`
            number of samples by which to pad each end of the array.
            Single int to pad both ends by the same amount, or
            (before, after) `tuple` to give uneven padding
        **kwargs
            see :meth:`numpy.pad` for kwarg documentation

        Returns
        -------
        series : `Series`
            the padded version of the input

        See also
        --------
        numpy.pad
            for details on the underlying functionality