Example #1
0
def getGraphs(columns: pd.MultiIndex):
    index = columns.reorder_levels(['StrategyId', 'AssetId'])
    graphNames = map('_'.join, index.values.tolist())
    basePath = get_temp_path()
    return [
        os.path.join(basePath, f"{filename}.{graph_file_extension}")
        for filename in graphNames
    ]