Beispiel #1
0
    def incomplete_iso3c_for_1962_2000_csv(
            self, fl='incomplete_iso3c_for_1962_2000.csv', target_dir='csv/'):
        """
		Simple Utility for writing incomplete_iso3c_for_1962_2000 to csv file
		"""
        from_dict_to_csv(self.incomplete_iso3c_for_1962_2000,
                         header=['iso3c', '_recode_'],
                         fl=fl,
                         target_dir=target_dir)
Beispiel #2
0
	def iso3c_for_1962_2000_csv(self, fl='intertemporal_iso3c_for_1962_2000.csv', target_dir='csv/'):
		"""
		Simple Utility for writing iso3c_for_1962_2000 to csv file
		"""
		from_dict_to_csv(self.iso3c_for_1962_2000, header=['iso3c', '_recode_'], fl=fl, target_dir=target_dir)
Beispiel #3
0
    'Togo': 'TGO',
    'Trinidad Tbg': 'TTO',
    'Tunisia': 'TUN',
    'Turkey': 'TUR',
    'Turkmenistan': 'TKM',
    'UK': 'GBR',
    'US NES': '.',  #Drop
    'USA': 'USA',
    'Uganda': 'UGA',
    'Ukraine': 'UKR',
    'Untd Arab Em': 'ARE',
    'Uruguay': 'URY',
    'Uzbekistan': 'UZB',
    'Venezuela': 'VEN',
    'Viet Nam': 'VNM',
    'World':
    '.',  #Should this be WLD? Current Decision is to Drop so it is dropped in country matches
    'Yemen': 'YEM',
    'Yugoslavia': 'YUG',
    'Zambia': 'ZMB',
    'Zimbabwe': 'ZWE',
}

#-Script for Converting Dictionary to CSV-#

if __name__ == '__main__':
    from pyeconlab.util import from_dict_to_csv
    from_dict_to_csv(countryname_to_iso3c,
                     fl='countryname_to_iso3c.csv',
                     target_dir='csv/',
                     header=['countryname', 'iso3c'])
Beispiel #4
0
 def incomplete_iso3c_for_1962_2000_csv(self, fl='incomplete_iso3c_for_1998_2012.csv', target_dir='csv/'):
     """
     Simple Utility for writing incomplete_iso3c_for_1998_2012 to csv file
     """
     from_dict_to_csv(self.incomplete_iso3c_for_1998_2012, header=['iso3c', '_recode_'], fl=fl, target_dir=target_dir)
				'Tajikistan' 	: 'TJK',
				'Tanzania' 		: 'TZA',
				'Thailand' 		: 'THA',
				'Togo' 			: 'TGO',
				'Trinidad Tbg' 	: 'TTO',
				'Tunisia' 		: 'TUN',
				'Turkey' 		: 'TUR',
				'Turkmenistan' 	: 'TKM',
				'UK' 			: 'GBR',
				'US NES' 		: '.', 		#Drop
				'USA' 			: 'USA',
				'Uganda' 		: 'UGA',
				'Ukraine' 		: 'UKR',
				'Untd Arab Em' 	: 'ARE',
				'Uruguay' 		: 'URY',
				'Uzbekistan' 	: 'UZB',
				'Venezuela' 	: 'VEN',
				'Viet Nam' 		: 'VNM',
				'World' 		: '.', 		#Should this be WLD? Current Decision is to Drop so it is dropped in country matches
				'Yemen' 		: 'YEM',
				'Yugoslavia'	: 'YUG',
				'Zambia' 		: 'ZMB',
				'Zimbabwe' 		: 'ZWE',
}

#-Script for Converting Dictionary to CSV-#

if __name__ == '__main__':
	from pyeconlab.util import from_dict_to_csv
	from_dict_to_csv(countryname_to_iso3c, fl='countryname_to_iso3c.csv', target_dir='csv/', header=['countryname', 'iso3c'])