hyppo/independence/_utils.py
def check_dim_xy(self):
        """Convert x and y to proper dimensions"""
        if self.x.ndim == 1:
            self.x = self.x[:, np.newaxis]
        elif self.x.ndim != 2:
            raise ValueError(
                "Expected a 2-D array `x`, found shape " "{}".format(self.x.shape)
            )
        if self.y.ndim == 1:
            self.y = self.y[:, np.newaxis]
        elif self.y.ndim != 2:
            raise ValueError(
                "Expected a 2-D array `y`, found shape " "{}".format(self.y.shape)
            )

        self._check_nd_indeptest()

        return self.x, self.y
Convert x and y to proper dimensions
Convert x and y to proper dimensions
Convert x and y to proper dimensions
def check_dim_xy(self):
        if self.x.ndim == 1:
            self.x = self.x[:, np.newaxis]
        elif self.x.ndim != 2:
            raise ValueError(
                "Expected a 2-D array `x`, found shape " "{}".format(self.x.shape)
            )
        if self.y.ndim == 1:
            self.y = self.y[:, np.newaxis]
        elif self.y.ndim != 2:
            raise ValueError(
                "Expected a 2-D array `y`, found shape " "{}".format(self.y.shape)
            )
        self._check_nd_indeptest()
        return self.x, self.y
def check_dim_xy ( self ) : if self . x . ndim == 1 : self . x = self . x [ : , np . newaxis ] elif self . x . ndim != 2 : raise ValueError ( "Expected a 2-D array `x`, found shape " "{}" . format ( self . x . shape ) ) if self . y . ndim == 1 : self . y = self . y [ : , np . newaxis ] elif self . y . ndim != 2 : raise ValueError ( "Expected a 2-D array `y`, found shape " "{}" . format ( self . y . shape ) ) self . _check_nd_indeptest ( ) return self . x , self . y
Convert x and y to proper dimensions
Convert x and y to proper dimensions
"""Convert x and y to proper dimensions"""
self