dataFrame.column.str — toLowerCaseFirst()

Description

The toLowerCaseFirst() method of the str object returns the values of the selected column with the first character converted to lowercase.

Signature

dataFrame.column(columnName).str.toLowerCaseFirst()
Scope
dataFrame
Family
str
Returns
array

Argument

columnName (string)
The name of the column containing the values to convert.

Returns

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

Example

// convert the first character of the values of a column of the dataFrame to lowercase
var mask = dataFrame.column('values').str.toLowerCaseFirst();

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