I am trying to execute this code using for loop,
for i in fielding: # fielding has nearly 19000 records - dtype (list of dictionary)
for j in player: # player has nearly 17000 records - dtype (list of dictionary)
if i['id'] == j['id']:
j['name'] = 'Luke'
So it takes longer time to run. Is there any alternative way to achieve this ? Thanks for your help.