skoot.utils.validate_multiple_rows

skoot.utils.validate_multiple_rows(clsname, frame)[source][source]

Validate that there are at least two samples to evaluate.

This is used for various feature transformation techniques, such as box-cox and yeo-johnson transformations.

Parameters:

clsname : str or unicode

The name of the class that is calling the function. Used for more clear error messages.

frame : array-like or pd.DataFrame, shape=(n_features, n_features)

The samples to evaluate. If contains less than two samples, will raise a ValueError.