Python create a table into variable from a csv file
I want to create a table into variable something that looks like actual csv file: Length Price Code 10.05 0.78 AB89H 20 5 HB20K This is something that What I do to every function I am working with So maybe I can do it once perhaps... tree_file.readline() # skip first row for row in tree_file: field=row.strip() field=field.split(",") #make Into fields price=int(field[1]) I want a function that create a table from csv file so I can use this table for all my other function. So I don't have to all the time open csv file in each function and strip them and make them in field. I don't need to print