def is_contiguous(self, other, tol=<NUM_LIT:1>/<NUM_LIT>**<NUM_LIT>):
self.is_compatible(other)<EOL>if isinstance(other, type(self)):<EOL><INDENT>if abs(float(self.xspan[<NUM_LIT:1>] - other.xspan[<NUM_LIT:0>])) < tol:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>elif abs(float(other.xspan[<NUM_LIT:1>] - self.xspan[<NUM_LIT:0>])) < tol:<EOL><INDENT>return -<NUM_LIT:1><EOL><DEDENT>return <NUM_LIT:0><EOL><DEDENT>elif type(other) in [list, tuple, numpy.ndarray]:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>
Check whether other is contiguous with self.

        Parameters
        ----------
        other : `Series`, `numpy.ndarray`
            another series of the same type to test for contiguity

        tol : `float`, optional
            the numerical tolerance of the test

        Returns
        -------
        1
            if `other` is contiguous with this series, i.e. would attach
            seamlessly onto the end
        -1
            if `other` is anti-contiguous with this seires, i.e. would attach
            seamlessly onto the start
        0
            if `other` is completely dis-contiguous with thie series

        Notes
        -----
        if a raw `numpy.ndarray` is passed as other, with no metadata, then
        the contiguity check will always pass