Series.append
Add a new value or values to the end of a Series.
Parameters
Type
Description
Default
Append new Series to the end of a Series
const dfd = require("danfojs-node")
let sf1 = new dfd.Series([1, 2, 3, 4], { index: ['f1', 'f2', 'f3', 'f4'] })
let sf2 = new dfd.Series(["a", "b", "c"])
new_sf = sf1.append(sf2, ["f5", "f6", "f7"])
new_sf.print()╔════╤═══╗
║ f1 │ 1 ║
╟────┼───╢
║ f2 │ 2 ║
╟────┼───╢
║ f3 │ 3 ║
╟────┼───╢
║ f4 │ 4 ║
╟────┼───╢
║ f5 │ a ║
╟────┼───╢
║ f6 │ b ║
╟────┼───╢
║ f7 │ c ║
╚════╧═══╝Append new Series to the end of a Series in-place
Append an array to the end of Series
Last updated