hyppo/independence/_utils.py
def _check_nd_indeptest(self):
        """Check if number of samples is the same"""
        nx, _ = self.x.shape
        ny, _ = self.y.shape
        if nx != ny:
            raise ValueError(
                "Shape mismatch, x and y must have shape " "[n, p] and [n, q]."
            )
Check if number of samples is the same
Check if number of samples is the same
Check if number of samples is the same
def _check_nd_indeptest(self):
        nx, _ = self.x.shape
        ny, _ = self.y.shape
        if nx != ny:
            raise ValueError(
                "Shape mismatch, x and y must have shape " "[n, p] and [n, q]."
            )
def _check_nd_indeptest ( self ) : nx , _ = self . x . shape ny , _ = self . y . shape if nx != ny : raise ValueError ( "Shape mismatch, x and y must have shape " "[n, p] and [n, q]." )
Check if number of samples is the same
Check if number of samples is the same
"""Check if number of samples is the same"""
self