dataFrame.column.str — left()
Description
The left() method of the str object returns the specified number of characters from the beginning of each value in the selected column.
Signature
dataFrame.column(columnName).str.left(count)Argument
columnName(string)- The name of the column containing the values to extract.
count(number)- The number of characters to extract from the beginning 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.left(10);
// add values to the dataFrame
dataFrame.column('newValues').set(mask);