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
  Question about change hex string to integer sting in the list (python 2.7) lzfneu 1 399 May-24-2021, 08:48 AM
Last Post: bowlofred
Question dict value, how to change type from int to list? swissjoker 3 685 Dec-09-2020, 09:50 AM
Last Post: perfringo
  2d Array adds last element to entire list waiteup 2 497 Nov-19-2020, 08:25 PM
Last Post: bowlofred
  trouble with list array Milfredo 2 647 Sep-16-2020, 12:07 AM
Last Post: Milfredo
  Finding an element in a 1d list in a 2d array lionrocker221 0 650 Jun-27-2020, 04:50 PM
Last Post: lionrocker221
  Make an array of string number in a List polantas 5 1,085 May-27-2020, 07:18 AM
Last Post: buran
  append list to empty array SchroedingersLion 1 945 Feb-02-2020, 05:29 PM
Last Post: SchroedingersLion
  change array elements dependent on index SchroedingersLion 1 767 Nov-22-2019, 06:25 AM
Last Post: scidam
  How to read a text file into a list or an array musouka 2 1,544 Oct-07-2019, 01:54 PM
Last Post: musouka
  Most efficient way of reshaping a list-array structure midarq 2 789 Sep-25-2019, 09:32 AM
Last Post: midarq

Forum Jump:

User Panel Messages

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