def __sanitize_items_in(df, sanitize):
    """Sanitize the dataframe values if it has EOL or space in it"""
    for i, row in df.iterrows():
        for key, value in row.iteritems():
            if type(value) != str:
                continue
            if '\n' in value or ' ' in value:
                df.at[i, key] = sanitize(value)
