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
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  find some word in text list file and a bit change to them RolanRoll 3 162 Jun-27-2022, 01:36 AM
Last Post: RolanRoll
  array change svm 6 248 Jun-23-2022, 01:01 PM
Last Post: svm
Question Change elements of array based on position of input data Cola_Reb 6 647 May-13-2022, 12:57 PM
Last Post: Cola_Reb
  Change font in a list or tuple apffal 3 1,023 Oct-14-2021, 05:26 AM
Last Post: ndc85430
  Change a list to integer so I can use IF statement buckssg 3 1,105 Sep-21-2021, 02:58 AM
Last Post: bowlofred
  change csv file into adjency list ainisyarifaah 0 787 Sep-21-2021, 02:49 AM
Last Post: ainisyarifaah
  How to change odd to even numbers in the list? plumberpy 8 1,556 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 1,407 May-24-2021, 08:48 AM
Last Post: bowlofred
Question dict value, how to change type from int to list? swissjoker 3 1,579 Dec-09-2020, 09:50 AM
Last Post: perfringo
  2d Array adds last element to entire list waiteup 2 1,125 Nov-19-2020, 08:25 PM
Last Post: bowlofred

Forum Jump:

User Panel Messages

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