dataFrame.column.str — right()
Description
The right() method of the str object returns the specified number of characters from the end of each value in the selected column.
Signature
dataFrame.column(columnName).str.right(count)Argument
columnName(string)- The name of the column containing the values to extract.
count(number)- The number of characters to extract from the end of each value.
Returns
mask( string[] )- An array containing the extracted values.
Example
// extract values from a column of the dataFrame
var mask = dataFrame.column('values').str.right(10);
// add values to the dataFrame
dataFrame.column('newValues').set(mask);