mario.calc_fa
- mario.calc_fa(ea, waa, ec=None, u=None)#
Calculate the
faactivity-side total environmental coefficients matrix.\[f_a = (e_a + e_c\,u)\,w_{aa}\]When
ec=None, the commodity term is omitted anduis not needed. SupplyingecwithouturaisesValueError.- Parameters:
ea (pandas.DataFrame) – Activity-side direct environmental coefficients: accounts by activity nodes.
waa (pandas.DataFrame) – Activity-to-activity Leontief inverse. Its row axis must match the columns of
ea.ec (pandas.DataFrame, optional) – Commodity-side direct environmental coefficients. Defaults to zero. Its row axis must match
ea.index.u (pandas.DataFrame, optional) – Use coefficients: commodity nodes by activity nodes. Required when
ecis supplied.
- Returns:
Total direct and indirect coefficients, with accounts on rows and activity nodes on columns.
- Return type:
pandas.DataFrame