dataFrame.column.str — suffixAdd()

Description

The suffixAdd() method of the str object returns the values of the selected column with the specified suffix added.

Signature

dataFrame.column(columnName).str.suffixAdd(suffix)
Scope
dataFrame
Family
str
Returns
array

Argument

columnName (string)
The name of the column containing the values to transform.
suffix (string)
The suffix to add to each value.

Returns

mask ( string[] )
An array containing the transformed values.

Example

// add a suffix to the values of a column of the dataFrame
var mask = dataFrame.column('values').str.suffixAdd('_suffix');

// add values to the dataFrame
dataFrame.column('newValues').set(mask);