check_column_existence

paralytics.utils.check_column_existence(X, columns)[source]

Checks whether all listed columns are in a given DataFrame.

Parameters
X: pandas.DataFrame

Data with columns to be checked for occurrence.

columns: single label or list-like

Columns’ labels to check.

Returns
None
Raises
ValueError

If one of the elements of cols is not found in the X columns.