(self, column_index)
return self.create_imputer(state[0], *state[1])
Return the imputation method for column by its index.
Return the imputation method for column by its index.
Return the imputation method for column by its index .
def get_method_for_column(self, column_index):
        # type: (int) -> impute.BaseImputeMethod
        """
        Return the imputation method for column by its index.
        """
        assert 0 <= column_index < len(self.varmodel)
        idx = self.varmodel.index(column_index, 0)
        state = idx.data(StateRole)
        if state is None:
            state = (Method.AsAboveSoBelow, ())
        return self.create_imputer(state[0], *state[1])
def get_method_for_column ( self , column_index ) : # type: (int) -> impute.BaseImputeMethod assert 0 <= column_index < len ( self . varmodel ) idx = self . varmodel . index ( column_index , 0 ) state = idx . data ( StateRole ) if state is None : state = ( Method . AsAboveSoBelow , ( ) ) return self . create_imputer ( state [ 0 ] , * state [ 1 ] )