def check_pandas_columns(df, column_names):
    """check_pandas_columns
    will check that a list of columns is in a data frame
    """
    for column_name in column_names:
        if column_name not in df.columns:
            raise ValueError(
                'column %s is missing from relationship table.' % column_name)
