mario.calc_Ma
- mario.calc_Ma(ma, s, Yc)#
Calculate the
Maactivity-side total value added flows matrix.\[M_a = m_a\,\operatorname{diag}\!\left(s\,(Y_c\mathbf{1})\right)\]Final demand is summed across its columns and mapped to activities through
sbefore scaling the multiplier columns. The output columns represent production nodes, rather than final-demand categories.- Parameters:
ma (pandas.DataFrame) – Total value added coefficients: factors by activity nodes.
s (pandas.DataFrame) – Supply coefficients: activity nodes by commodity nodes. Its row axis must match the columns of
ma.Yc (pandas.DataFrame) – Commodity final demand: commodity nodes by final-demand categories and regions.
- Returns:
Footprint flows with the same index and columns as
ma.- Return type:
pandas.DataFrame