umbmid/build.py
def import_metadata_df(gen='one'):
    """Loads the metadata and returns as a pandas dataframe.

    Parameters
    ----------
    gen : str
        The generation of data, must be in ['one', 'two']

    Returns
    -------
    metadata :
        The metadata of the experiments, returned as a pandas dataframe.
    """

    assert gen in ['one', 'two', 'three'], \
        "Error: gen must be in ['one', 'two']"

    # Load the metadata as a list of dicts
    metadata = import_metadata(gen=gen)

    metadata_df = pd.DataFrame()  # Init dataframe to return

    # For each info-piece in the metadata
    for metadata_info in metadata[0].keys():

        # Make this a column
        metadata_df[metadata_info] = get_info_piece_list(metadata,
                                                         metadata_info)

    return metadata_df
Loads the metadata and returns as a pandas dataframe.

    Parameters
    ----------
    gen : str
        The generation of data, must be in ['one', 'two']

    Returns
    -------
    metadata :
        The metadata of the experiments, returned as a pandas dataframe.
    
Loads the metadata and returns as a pandas dataframe.
Loads the metadata and returns as a pandas dataframe .
def import_metadata_df(gen='one'):
    assert gen in ['one', 'two', 'three'], \
        "Error: gen must be in ['one', 'two']"
    metadata = import_metadata(gen=gen)
    metadata_df = pd.DataFrame()  
    for metadata_info in metadata[0].keys():
        metadata_df[metadata_info] = get_info_piece_list(metadata,
                                                         metadata_info)
    return metadata_df
def import_metadata_df ( gen = 'one' ) : assert gen in [ 'one' , 'two' , 'three' ] , "Error: gen must be in ['one', 'two']" metadata = import_metadata ( gen = gen ) metadata_df = pd . DataFrame ( ) for metadata_info in metadata [ 0 ] . keys ( ) : metadata_df [ metadata_info ] = get_info_piece_list ( metadata , metadata_info ) return metadata_df
Loads the metadata and returns as a pandas dataframe.
Loads the metadata and returns as a pandas dataframe .
"""Loads the metadata and returns as a pandas dataframe.

    Parameters
    ----------
    gen : str
        The generation of data, must be in ['one', 'two']

    Returns
    -------
    metadata :
        The metadata of the experiments, returned as a pandas dataframe.
    """ # Load the metadata as a list of dicts
 # Init dataframe to return
 # For each info-piece in the metadata
 # Make this a column

The metadata of the experiments, returned as a pandas dataframe.
The metadata of the experiments returned as a pandas dataframe .
gen
The generation of data, must be in ['one', 'two']
The generation of data must be in [ ' one ' ' two ' ]