def config(configfile):
    """
    read a configfile and return the dataframe
    
    >>> configs = config('egf.py')

    :param configfile: the path to the configuration file
    :returns dataset: the dictionary with the configu info
    """
    configs = {}
    with open(configfile) as f:
        exec(f.read(), configs)
    return configs
