I am really familiar and comfortable using Loop Nodes in KNIME. But I was wondering if it is possible to write a FOR Loop in the Column Expressions node.
change_row = [12, 13, 29, 74, 78, 173, 185, 198, 210, 238, 274, 278, 290];
for (let i = 0 ; i < rowCount(); i++)
if (column("RowID") == change_row[i])
"Negative";
else
column("Comp_Sentiment_Category");
I feel like it in certain circumstances it could be more convenient to just have the loop run in the Column Expressions node than build it out in the workflow.
I thought for some reason I needed a loop, that’s the only reason why I had brought it up. Additionally, I like the idea of using the Column Expressions node here because it keeps things clean and simple and inside 1 node without the need to split and concat etc. (if I’m understanding correctly!).