Series.str.split
Split string around a given separator/delimiter. The array of strings are then converted to a string.
Parameters
Type
Description
Default
const dfd = require("danfojs-node")
let data = ["king of the music","the lamba queen","I love the hat"]
let sf = new dfd.Series(data)
console.log(sf.str.split().values)const dfd = require("danfojs-node")
let data = ["king_of_the_music","the_lamba_queen","I_love_the_hat"]
let sf = new dfd.Series(data)
sf.str.split("_").print()╔═══╤══════════════════════╗
║ │ 0 ║
╟───┼──────────────────────╢
║ 0 │ king,of,the,music ║
╟───┼──────────────────────╢
║ 1 │ the,lamba,queen ║
╟───┼──────────────────────╢
║ 2 │ I,love,the,hat ║
╚═══╧══════════════════════╝Last updated