(dataframe=None, mydict=None)
return ', '.join(string_values)
Returns a message string by combining all columns from a DataFrame/dict.

    Args:
        dataframe (pandas.DataFrame): the data frame containing the data. Used
            to get column names for the message string if supplied.
        mydict (dict): if supplied the dictionary keys will be used to
            construct the message string.

    Raises:
        ValueError if neither dataframe nor a dictionary is supplied.

    Returns:
        A string that can be used as a default message string.
Returns a message string by combining all columns from a DataFrame/dict.
Returns a message string by combining all columns from a DataFrame / dict .
def get_combined_message_string(dataframe=None, mydict=None):
    """Returns a message string by combining all columns from a DataFrame/dict.

    Args:
        dataframe (pandas.DataFrame): the data frame containing the data. Used
            to get column names for the message string if supplied.
        mydict (dict): if supplied the dictionary keys will be used to
            construct the message string.

    Raises:
        ValueError if neither dataframe nor a dictionary is supplied.

    Returns:
        A string that can be used as a default message string.
    """
    if dataframe is None and mydict is None:
        raise ValueError('Need to define either a dict or a DataFrame')

    if mydict:
        my_list = list(mydict.keys())
    else:
        my_list = list(dataframe.columns)

    fields_to_delete = list(set(my_list).intersection(
        FIELDS_TO_SKIP_IN_FORMAT_STRING))
    for field in fields_to_delete:
        index = my_list.index(field)
        _ = my_list.pop(index)

    for del_field in FIELDS_TO_SKIP_STARTSWITH:
        for index, field in enumerate(my_list):
            if field.startswith(del_field):
                _ = my_list.pop(index)

    string_values = [
        '[{0:s}] = {{{0:s}}}'.format(x) for x in my_list]
    return ', '.join(string_values)
def get_combined_message_string ( dataframe = None , mydict = None ) : if dataframe is None and mydict is None : raise ValueError ( 'Need to define either a dict or a DataFrame' ) if mydict : my_list = list ( mydict . keys ( ) ) else : my_list = list ( dataframe . columns ) fields_to_delete = list ( set ( my_list ) . intersection ( FIELDS_TO_SKIP_IN_FORMAT_STRING ) ) for field in fields_to_delete : index = my_list . index ( field ) _ = my_list . pop ( index ) for del_field in FIELDS_TO_SKIP_STARTSWITH : for index , field in enumerate ( my_list ) : if field . startswith ( del_field ) : _ = my_list . pop ( index ) string_values = [ '[{0:s}] = {{{0:s}}}' . format ( x ) for x in my_list ] return ', ' . join ( string_values )