I'm trying to verify some codes in a dataframe named "productos_farmacia" from 2 diferents data frames named "cuarta" and "promocion", the verification seems correct, but the storage is wrong. sorry for my english
for x in productos_farmacia["Código"]:
for y in cuarta["Producto"]:
if x == y:
productos_farmacia.loc[x,"tipo"] = "IV"
for z in promocion["Producto"]:
if x == z:
productos_farmacia.loc[x,"tipo"] = "Promocion"