Python Forum
LIST or ARRAY Comparison and change of value
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LIST or ARRAY Comparison and change of value
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Change a list to integer so I can use IF statement buckssg 3 114 Yesterday, 02:58 AM
Last Post: bowlofred
  change csv file into adjency list ainisyarifaah 0 58 Yesterday, 02:49 AM
Last Post: ainisyarifaah
  How to change odd to even numbers in the list? plumberpy 8 419 Aug-08-2021, 11:07 AM
Last Post: plumberpy
  Question about change hex string to integer sting in the list (python 2.7) lzfneu 1 541 May-24-2021, 08:48 AM
Last Post: bowlofred
Question dict value, how to change type from int to list? swissjoker 3 822 Dec-09-2020, 09:50 AM
Last Post: perfringo
  2d Array adds last element to entire list waiteup 2 573 Nov-19-2020, 08:25 PM
Last Post: bowlofred
  trouble with list array Milfredo 2 727 Sep-16-2020, 12:07 AM
Last Post: Milfredo
  Finding an element in a 1d list in a 2d array lionrocker221 0 721 Jun-27-2020, 04:50 PM
Last Post: lionrocker221
  Make an array of string number in a List polantas 5 1,207 May-27-2020, 07:18 AM
Last Post: buran
  append list to empty array SchroedingersLion 1 1,036 Feb-02-2020, 05:29 PM
Last Post: SchroedingersLion

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020