mario.calc_Fa(fa, s, Yc)#

Calculate the Fa activity-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 s before 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