Powered By GitBook
Series.str.toLowerCase
Converts all characters to lower case.
danfo.Series.str.toLowerCase(options) [source]
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
1
const dfd = require("danfojs-node")
2
3
let data = ['LOWER BOY', 'CAPITALS', 'SENTENCE', 'SWAPCASE']
4
let sf = new dfd.Series(data)
5
sf.str.toLowerCase().print()
Copied!
1
Copied!
Output
1
╔═══╤══════════════════════╗
2
║ │ 0 ║
3
╟───┼──────────────────────╢
4
║ 0 │ lower boy ║
5
╟───┼──────────────────────╢
6
║ 1 │ capitals ║
7
╟───┼──────────────────────╢
8
║ 2 │ sentence ║
9
╟───┼──────────────────────╢
10
║ 3 │ swapcase ║
11
╚═══╧══════════════════════╝
Copied!
Last modified 24d ago
Copy link