Open fgiroud opened 3 years ago
Hello, I am trying to use glom to concatenate properties. Despite many attempts, I can't figure out a solution is it possible?
target = { "first_name": "John", "last_name": "Doe" } # expected output { "full_name": "John Doe", }
Thanks in advance
import glom target = { "first_name": "John", "last_name": "Doe" } glom.glom(target, spec = {"full_name": glom.T['first_name']+" "+glom.T['last_name'] })
result:
{'full_name': 'John Doe'}
Hello, I am trying to use glom to concatenate properties. Despite many attempts, I can't figure out a solution is it possible?
Thanks in advance