def check_col_names(df1, df2, cols_only=True):
    """Return True or False indicating whether or not the column names are the same between two dataframes"""
    # Default is that columns are passed, for ease of use
    # with check_col_list below
    # will return truth value for each column pair, so we achieve
    # one truth value for the whole array/list by calling all
    if cols_only:
        result = all(df1 == df2)
    # Also possible to pass two dataframes directly by specifying
    # cols_only=False
    else:
        result = all(df1.columns == df2.columns)
    # Return True/False result
    return result