orangearg.argument.miner.utilities

Collection of helper functions.

Module Contents

Functions

check_columns(expected_cols, data)

Check if a list of given columns exist in a given Pandas dataframe.

orangearg.argument.miner.utilities.check_columns(expected_cols: List[str], data: pandas.DataFrame)[source]

Check if a list of given columns exist in a given Pandas dataframe.

Parameters:
  • expected_cols (List[str]) – list of columns to check

  • df (pd.DataFrame) – pandas dataframe to check

Raises:

ValueError – if any of the expected columns are missing.