if r['opcode'] == 1:
r['opcode'] = str(r['opcode']).replace('1', 'Оплата')
if r['opcode'] == 2:
r['opcode'] = str(r['opcode']).replace('2', 'Возврат')
if r['opcode'] == 3:
r['opcode'] = str(r['opcode']).replace('3', 'Рекуррентное списание')
if r['opcode'] == 4:
r['opcode'] = str(r['opcode']).replace('4', 'Блокировка')