def read_country_info(self):
        csv_reader = CsvReader()
        fields, lines = csv_reader.read_csv(csv_file="kerstpuzzel_landen.csv", header_present=True)
        countries = csv_reader.transform_csv_structure_into_json_structure(fields, lines)

        self.population = {}
        self.area = {}
        for country in countries:
            self.population[country["Land"]] = int(country["Inwoners"])
            self.area[country["Land"]] = int(country["Oppervlak"])
Example #2
0
 def testNewClass(self):
     csr = CsvReader('AutoCtrl_Area01_01.csv')
     csr.print()