mario.calc_Fa
- mario.calc_Fa(fa, s, Yc)#
Calculate the
Faactivity-side total environmental flows matrix.\[F_a = f_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:
fa (pandas.DataFrame) – Total environmental coefficients: accounts by activity nodes.
s (pandas.DataFrame) – Supply coefficients: activity nodes by commodity nodes. Its row axis must match the columns of
fa.Yc (pandas.DataFrame) – Commodity final demand: commodity nodes by final-demand categories and regions.
- Returns:
Footprint flows with the same index and columns as
fa.- Return type:
pandas.DataFrame