(df, from_files=None)
return paths
Function: load_filepaths
    Summary: Get each filepath of solutions based on pd.DataFrame
    Examples:
        >>> df = load_dataframe()
        >>> py = df[["CommonLisp"]]
        >>> load_filepaths(py)
        ["..."]

    Attributes:
        @param (df): pd.DataFrame
    Returns: list of file paths
Function: load_filepaths
    Summary: Get each filepath of solutions based on pd.DataFrame
    Examples:
        >>> df = load_dataframe()
        >>> py = df[["CommonLisp"]]
        >>> load_filepaths(py)
        ["..."]
Function : load_filepaths Summary : Get each filepath of solutions based on pd . DataFrame Examples : >>> df = load_dataframe () >>> py = df [[ CommonLisp ]] >>> load_filepaths ( py ) [ ... ]
def solutions_paths(df, from_files=None):
    """
    Function: load_filepaths
    Summary: Get each filepath of solutions based on pd.DataFrame
    Examples:
        >>> df = load_dataframe()
        >>> py = df[["CommonLisp"]]
        >>> load_filepaths(py)
        ["..."]

    Attributes:
        @param (df): pd.DataFrame
    Returns: list of file paths
    """
    paths = []
    if from_files:
        for problem, lang, s in from_files:
            paths.append((lang, path.join(problem, lang, s)))
        return paths
    for column in df.columns:
        solutions = df[df[column].notnull()][column]
        lang = solutions.name
        problems = solutions.index
        for problem in problems:
            p = ((lang, path.join(problem, lang, s))
                 for s in solutions[problem])
            paths.extend(p)
    return paths
def solutions_paths ( df , from_files = None ) : paths = [ ] if from_files : for problem , lang , s in from_files : paths . append ( ( lang , path . join ( problem , lang , s ) ) ) return paths for column in df . columns : solutions = df [ df [ column ] . notnull ( ) ] [ column ] lang = solutions . name problems = solutions . index for problem in problems : p = ( ( lang , path . join ( problem , lang , s ) ) for s in solutions [ problem ] ) paths . extend ( p ) return paths