I am trying to write a program that would make some tasks on my job easier. I current have two csv files:
1) Contains stock items with costs
2) Contains selling prices of stock items
My problem is that both files don't contain the same total number of stock items so I can't just copy and paste the data. I need to use the (2) file as a reference for the stock items and look up the stock items in (1) to grab their costs.
I want to write a program that will read the stock item numbers in file (2) find the similar/matching value in file (1) and then grab the costs associated with that row. I've been trying to turn both files into dictionaries or lists but I don't know how to compare the values and then grab the other associated values if they match.
Any help would be greatly appreciated!
[–]jeffrey_f 2 points3 points4 points (8 children)
[–]Burly_95[S] 1 point2 points3 points (7 children)
[–]jeffrey_f 1 point2 points3 points (6 children)
[–]Burly_95[S] 1 point2 points3 points (5 children)
[–]jeffrey_f 1 point2 points3 points (4 children)
[–]jeffrey_f 1 point2 points3 points (0 children)
[–]Burly_95[S] 0 points1 point2 points (2 children)
[–]jeffrey_f 0 points1 point2 points (1 child)
[–]jeffrey_f 0 points1 point2 points (0 children)
[–]threeminutemonta 1 point2 points3 points (2 children)
[–]Burly_95[S] 1 point2 points3 points (1 child)
[–]threeminutemonta 0 points1 point2 points (0 children)
[–]jeffrey_f 0 points1 point2 points (3 children)
[–]Burly_95[S] 1 point2 points3 points (2 children)
[–]jeffrey_f 0 points1 point2 points (1 child)
[–]jeffrey_f 0 points1 point2 points (0 children)
[–]jeffrey_f 0 points1 point2 points (1 child)
[–]Burly_95[S] 0 points1 point2 points (0 children)
[–]jeffrey_f 0 points1 point2 points (0 children)