is_numeric

paralytics.utils.is_numeric(X, project=True)[source]

Checks whether given vector contains numeric-only values excluding boolean vectors.

Parameters
X: array-like, shape = (n_samples, )

Vector where n_samples is the number of samples.

project: bool, optional (default=True)

If True tries to project on a numeric type unless categorical dtype is passed.

Returns
bool