Series.str.toLowerCase

Converts all characters to lower case.

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

Parameters: None

Returns: Series (String element)

Example

Convert all characters in each string element to small letter

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