This workflow shows how to concatenate tables from two different sheets and combine string-type columns using KNIME Analytics Platform.
The aim is to concatenate different sheets and combine the sport and event columns from the "Olympic_Athlete_Event_Results" file.
Let's walk through the different nodes involved in this operation:
To view each node's configuration, double-click or right-click > "Configuration" to open the configuration dialogue.
Excel Reader nodes:
1 - In the "File and Sheet" tab, the file name and the sheet to read from are already set up (the folder with the data is already included when you download the workflow).
2 - Within the "Data Area" tab, we have selected read the "Whole sheet". This configuration allows us to have the sheet as it is. The intent is to respect its original structure.
Concatenate node:
1 - We can control how the two input tables will be concatenated. Since our two input tables have the same structure, we use the intersection mode. There is the option of either using intersection or union columns mode.
2 - We choose the "Append suffix" option to handle duplicate row ids with the suffix "_dup". It means that if we have two rows with the id "Row0", one gets changed to "Row0_dup".
Column Combiner node:
We combine the columns "sport" and "event" to the column "discipline" using ":" as a delimiter and also remove the aggregated columns from the output table.
Excel Writer:
We will append a new sheet called "Combined_Sport_Event" in the original excel file (Notice that if you run it several times, it will overwrite it).
After executing the node, the file will open.
As you can see from the output, we now have concatenated the input tables and replaced the "sport" and "event" columns with the combined column "discipline".
To use this workflow in KNIME, download it from the below URL and open it in KNIME:
Download WorkflowDeploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.