Skip to main content
Version: v1.13 print this page

AddColumns

This node allows adding new columns with certain values

Input

This type of node takes in a DataFrame and transforms it to another DataFrame

Output

This node adds the user specified columns to the DataFrame

Type

transform

Fields

NameTitleDescription
addCurrentDateColAdd Current Date ColumnWhether to add the current date as a new column
currentDateColNameCurrent Date Column NameName of the new Current Date Column Created
addCurrentTimeColAdd Current Time ColumnWhether to add the current time as a new column
currentTimeColNameCurrent Time Column NameName of the new Current Time Column Created
addConstantStringCol1Add Constant String ColumnWhether to add a new columns with constant string value
constantStringColName1Constant String Column NameConstant String Name
constantStringColValue1Constant String Column ValueConstant String Value
addConstantIntCol1Add Constant Integer ColumnWhether to add a new columns with constant integer value
constantIntColName1Constant Integer Column NameConstant Integer Column Name
constantIntColValue1Constant Integer Column ValueConstant Integer Value

Examples

Input

idlabelf1f2
61.02.12.0
40.04.15.0
50.03.16.0
661.02.12.0

Parameters

NameValue
Join Columntxid
Add Current Date Columntrue
Current Date Column Namecurrent_date
Add Current Time Columntrue
Current Time Column Namecurrent_time
Add Constant String Columntrue
Constant String Column Nameconstant_string
Constant String Column ValueXYZ
Add Constant Integer Columntrue
Constant Integer Column Nameconstant_integer
Constant Integer Column Value10

Output

idlabelf1f2current_datecurrent_timeconstant_stringconstant_integer
61.02.12.02019-09-292019-09-29 14:27:16.206XYZ10
40.04.15.02019-09-292019-09-29 14:27:16.206XYZ10
50.03.16.02019-09-292019-09-29 14:27:16.206XYZ10
661.02.12.02019-09-292019-09-29 14:27:16.206XYZ10