Package destination_based_sales
Expand source code
from os.path import isfile
from os.path import dirname
version_file = '{}/version.txt'.format(dirname(__file__))
if isfile(version_file):
with open(version_file) as version_file:
__version__ = version_file.read().strip()
Sub-modules
destination_based_sales.analyses
-
This module is the central module for the study and estimation of US multinational companies' destination-based sales. It builds upon the logic …
destination_based_sales.analytical_amne
-
This module is used to load and preprocess data from the OECD's Analytical AMNE database. The latter allows, for non-US multinational companies, to …
destination_based_sales.bea
-
This module is used to load and preprocess data from the Bureau of Economic Analysis (BEA). These allow to split revenue variables between sales …
destination_based_sales.global_sales_calculator
-
Following the model of "analyses.py", this module is the central module for the study of non-US multinational companies' destination-based sales. It …
destination_based_sales.irs
-
This module is used to load and preprocess the country-by-country data of the Internal Revenue Service (IRS). These pro- vide the three revenue …
destination_based_sales.oecd_cbcr
-
This module is used to load and preprocess aggregated and anonymized country-by-country data from the OECD. These pro- vide the three revenue …
destination_based_sales.per_industry
-
This module is dedicated to the industry-specific analyses described in Section 4.a. of the PDF report of August 2021. Indeed, the US Internal Revenue …
destination_based_sales.revenue_split
-
This module is used to split the revenue variables of the IRS country-by-country data into three categories (sales to the affiliate country, sales to …
destination_based_sales.trade_statistics
-
This module is used to load and preprocess the OECD's balanced trade statistics (both in services (BaTIS) and in mer- chandise trade (BIMTS)). These …
destination_based_sales.utils
-
This module defines several useful functions, mobilised throughout the other Python files.