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"])
'''How to install matplotlib ?''' from graphs import draw_multiline from CsvReader import CsvReader # draw_multiline() csv_reader = CsvReader("movies.csv") csv_reader.read_csv() #csv_reader.draw_films_by_years() csv_reader.draw_films_by_profits()