Python Forum
LIST or ARRAY Comparison and change of value - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: LIST or ARRAY Comparison and change of value (/thread-31593.html)



LIST or ARRAY Comparison and change of value - nio74maz - Dec-21-2020

Hello everyone I need some advice, I am extracting two columns from a table in a local database and the same on a mysql database on a server, I was thinking of injecting them on two lists where the commanded list needs to be compared with the other, I'll have to find the differences in value and change them to that commander example:

List Comanded

Code Value Code Value
1 10 1 10
13 8 13 51
15 9 15 9
18 8 18 10


In this example I have to replace the values of code 13 and 18 on list 2
What would you do take into account that arrays or matrices lists must be injected with data from a csv. Thank you all