danfo.Series.str.join(valToJoin,joinChar) [source]
Parameters | Type | Description | Default |
valToJoin | String | the string value you want to | "" |
joinChar | String | The delimiter to specify the joining | " " |
Returns:
return Series
Examples
const dfd = require("danfojs-node")let data = ['lower part', 'CAPITALS city', 'this is a sentence', 'SwAp CaSe']let sf = new dfd.Series(data)sf.str.join("new", "_").print()
╔═══╤══════════════════════╗║ │ 0 ║╟───┼──────────────────────╢║ 0 │ lower part_new ║╟───┼──────────────────────╢║ 1 │ CAPITALS city_new ║╟───┼──────────────────────╢║ 2 │ this is a sentenc... ║╟───┼──────────────────────╢║ 3 │ SwAp CaSe_new ║╚═══╧══════════════════════╝