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
  Change font in a list or tuple apffal 4 2,635 Jun-16-2023, 02:55 AM
Last Post: schriftartenio
  Change a numpy array to a dataframe Led_Zeppelin 3 1,065 Jan-26-2023, 09:01 PM
Last Post: deanhystad
  How to change the datatype of list elements? mHosseinDS86 9 1,899 Aug-24-2022, 05:26 PM
Last Post: deanhystad
  functional LEDs in an array or list? // RPi user Doczu 5 1,521 Aug-23-2022, 05:37 PM
Last Post: Yoriz
  find some word in text list file and a bit change to them RolanRoll 3 1,482 Jun-27-2022, 01:36 AM
Last Post: RolanRoll
  array change svm 6 1,422 Jun-23-2022, 01:01 PM
Last Post: svm
Question Change elements of array based on position of input data Cola_Reb 6 2,062 May-13-2022, 12:57 PM
Last Post: Cola_Reb
  Change a list to integer so I can use IF statement buckssg 3 2,194 Sep-21-2021, 02:58 AM
Last Post: bowlofred
  change csv file into adjency list ainisyarifaah 0 1,479 Sep-21-2021, 02:49 AM
Last Post: ainisyarifaah
  How to change odd to even numbers in the list? plumberpy 8 3,619 Aug-08-2021, 11:07 AM
Last Post: plumberpy

Forum Jump:

User Panel Messages

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