mario.calc_X(Z, Y)#

Calculate the X total production vector from Z and Y.

\[X = Z\mathbf{1} + Y\mathbf{1}\]
Parameters:
  • Z (pandas.DataFrame) – Z intersectoral transaction flows matrix.

  • Y (pandas.DataFrame) – Y final demand matrix with the same row axis as Z.

Returns:

X total production vector, computed as row totals of Z plus row totals of Y.

Return type:

pandas.DataFrame

Notes

Z.sum(axis=1) + Y.sum(axis=1) gives one value per production node. The returned single column is named production.