pystra.ddo.get_swtp_record#
- get_swtp_record(code, indexed=False, index_table=None)[source]#
Return a country-level SWTP record.
- Parameters:
code (
str) – Country code or supported country-name alias.indexed (
bool) – IfTrue, return the Rackwitz value indexed with the built-in World Bank GDP per capita PPP factors.index_table (
Optional[Mapping[str,SWTPIndexRecord]]) – Alternate country-code mapping ofSWTPIndexRecordobjects.
- Returns:
Source-backed SWTP value.
- Return type: