I need a lot more details to be able to answer. What is the error message? What is the context?
When you say, "
python's for i in zip
throws error" I can't help wondering if you are missing the colon (:) character at the end of that line.My first thought is that this code,
in1.color + " " + in1.type
, concatenates two columns with a space between them. Just to be sure, I tested it and the error thrown had to do with Null in those fields in some of the records of the default "Create Data" node. So I added code to handle Nulls:
if in1.color is Null:
if in1.type is Null:
x = Null
else:
x = in1.type
else:
if in1.type is Null:
x = in1.color
else:
x = in1.color + " " + in1.type
out1.x = x
------------------------------
Ernest Jones
Precisely Software Inc.
PEARL RIVER NY
------------------------------
Original Message:
Sent: 12-08-2022 11:41
From: Irakli Chitishvili
Subject: Concatenate 2 columns into one
Hi, I have seemingly simple question that I'm stuck on.
How to concat in transform node 2 columns into one, new column? Like name and surname into new fullName column? python's for i in zip
throws error.
Thanks!
------------------------------
Irakli Chitishvili
Knowledge Community Shared Account
------------------------------