When trying to make a variable zip, i found out that the variable way doesnt achieve the same as the fixed way. When I look to the strings they are the same and the type of variable is the same, but the methods are still different.
element=State_4
inputZIP1='entrenamiento.'+element
inputZIP2='entrenamiento.'+element+'_ENCODED'
mydict=dict(zip(entrenamiento.State_4,entrenamiento.State_4_ENCODED))
mydict2=dict(zip(inputZIP1,inputZIP2))
P.D. if anyone needs the full code to test it i can give it.