def mappings(self, year=None):
        mappings = []
        for yr, elecs in self.elections(year).items():
            mappings.extend(self._build_metadata(yr, elecs))

        return mappings
Transform the data X according to the fitted NMF model
dataset/ETHPy150Open openelections/openelections-core/openelex/us/il/datasource.py/Datasource.mappings--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/decomposition/nmf.py/NMF.transform