dataFrame.column.str — suffixRemove()
Description
The suffixRemove() method of the str object returns the values of the selected column with the specified suffix removed.
Signature
dataFrame.column(columnName).str.suffixRemove(suffix)Argument
columnName(string)- The name of the column containing the values to transform.
suffix(string)- The suffix to remove from each value.
Returns
mask( string[] )- An array containing the transformed values.
Example
// remove a suffix from the values of a column of the dataFrame
var mask = dataFrame.column('values').str.suffixRemove('_suffix');
// add values to the dataFrame
dataFrame.column('newValues').set(mask);