I have a big list of company information in an excel spreadsheet. I need to bring the company info into my program to process.
Each company has a unique label which is used for accessing the companies. I can create a dictionary using the labels as the keys and the company info as the values, such as {label1: company1, label2: company2, ...}
. By doing it this way, when the dictionary is created, it eats up too much memory.
Is it possible to create a generator that can be used like a dictionary?