Database.to_iot(method, inplace=True)#

Transform a SUT database into an IOT database.

Parameters:
  • method – Eurostat method: A/B for product-by-product or C/D for industry-by-industry. Regional classifications need not be uniform. A/C require square, invertible supply and zero activity final demand. B/D preserve nonzero Ya and accounts attached to either side of the SUT.

  • inplace – When True, mutate the current database. When False, return a transformed copy.

Returns:

Transformed database when inplace=False, otherwise None.

Return type:

Database | None

Notes

Converts the baseline and drops other scenarios, retaining its public name. Only observed regional nodes are used. Sparse input stays sparse; no unified SUT transaction view or dense inverse is constructed. Undefined allocation at a zero-output node with nonzero flows/accounts raises WrongInput naming the nodes. Singular supply also raises an error; no pseudoinverse, balancing or data correction is applied.

See Convert a SUT to an IOT for the assumptions behind methods A–D, allocation examples and equations.