def multiplySeriesWithWildcards(requestContext, seriesList, *position):
    positions = [position] if isinstance(position, int) else position

    newSeries = {}
    newNames = []

    for series in seriesList:
        new_name = ".".join(map(lambda x: x[1],
                                filter(lambda i: i[0] not in positions,
                                       enumerate(series.name.split('.')))))

        if new_name in newSeries:
            [newSeries[new_name]] = multiplySeries(requestContext,
                                                   (newSeries[new_name],
                                                    series))
        else:
            newSeries[new_name] = series
            newNames.append(new_name)
        newSeries[new_name].name = new_name
    return [newSeries[name] for name in newNames]
Phrases demo map function.
dataset/ETHPy150Open brutasse/graphite-api/graphite_api/functions.py/multiplySeriesWithWildcards--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/demo/main.py/phrases_map