check_valid_X
Functions
|
Ensure X is a non-empty Pandas data frame or Numpy array, and raise errors according to conditions of failed check |
Module Contents
- check_valid_X.check_valid_X(X, order)
Ensure X is a non-empty Pandas data frame or Numpy array, and raise errors according to conditions of failed check
- Parameters:
(Any) (X)
(Str) (order)
Raises
TypeError (If X is of an unsupported type)
ValueError (If X is an empty Pandas data frame or Numpy array)
Returns
None
Examples
>>> check_valid_X([], 'first')