So I have some csv data all I need from this data is two fields then I will do some calculations using the close price and have two more fields and print those four fields in a certain format.
I was thinking of creating namedtuples with the two fields and then adding the values of the other two fields once I calculate it. Would namedtuples be best to format it to this format, is another option better like dicts or lists?
If using namedtuples is the right way how do I create them with only the two fields from the data and two fields that can have the values added, I was able to create namedtuples but with all the fields by using splitlines() on the data and then creating the namedtuples.