Series.str.toLowerCase
Converts all characters to lower case.
Parameters | Type | Description | Default |
---|---|---|---|
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
Node
Browser
const dfd = require("danfojs-node")
let data = ['LOWER BOY', 'CAPITALS', 'SENTENCE', 'SWAPCASE']
let sf = new dfd.Series(data)
sf.str.toLowerCase().print()
Output
╔═══╤══════════════════════╗
║ │ 0 ║
╟───┼──────────────────────╢
║ 0 │ lower boy ║
╟───┼───────────────────── ─╢
║ 1 │ capitals ║
╟───┼──────────────────────╢
║ 2 │ sentence ║
╟───┼──────────────────────╢
║ 3 │ swapcase ║
╚═══╧══════════════════════╝
Last modified 1yr ago