Series.str.toLowerCase

Converts all characters to lower case.

danfo.Series.str.toLowerCase(options) [source]

ParametersTypeDescriptionDefault

options

Object

inplace: Whether to perform the operation in-place or not.

{

inplace: false

}

Example

Convert all characters in each string element to small letter

const dfd = require("danfojs-node")

let data = ['LOWER BOY', 'CAPITALS', 'SENTENCE', 'SWAPCASE']
let sf = new dfd.Series(data)
sf.str.toLowerCase().print()
╔═══╤══════════════════════╗
║   │ 0                    ║
╟───┼──────────────────────╢
║ 0 │ lower boy            ║
╟───┼──────────────────────╢
║ 1 │ capitals             ║
╟───┼──────────────────────╢
║ 2 │ sentence             ║
╟───┼──────────────────────╢
║ 3 │ swapcase             ║
╚═══╧══════════════════════╝

Last updated