Series.copy

Make a new copy of a Series

danfo.Series.copy() [source]

parameter:

Return: Series

Example

Node
Node
const dfd = require("danfojs-node")
let data1 = [30.21091, 40.190901, 3.564, 5.0212]
let sf1 = new dfd.Series(data1)
let sf2 = sf1.copy()
sf2.print()
Output
Output
╔═══╤══════════════════════╗
║ │ 0 ║
╟───┼──────────────────────╢
║ 0 │ 30.21091 ║
╟───┼──────────────────────╢
║ 1 │ 40.190901 ║
╟───┼──────────────────────╢
║ 2 │ 3.564 ║
╟───┼──────────────────────╢
║ 3 │ 5.0212 ║
╚═══╧══════════════════════╝