mario.calc_X
- mario.calc_X(Z, Y)#
Calculate the
Xtotal production vector fromZandY.\[X = Z\mathbf{1} + Y\mathbf{1}\]- Parameters:
Z (pandas.DataFrame) –
Zintersectoral transaction flows matrix.Y (pandas.DataFrame) –
Yfinal demand matrix with the same row axis asZ.
- Returns:
Xtotal production vector, computed as row totals ofZplus row totals ofY.- Return type:
pandas.DataFrame
Notes
Z.sum(axis=1) + Y.sum(axis=1)gives one value per production node. The returned single column is namedproduction.