Powered By GitBook
Series.copy
Makes a deep copy of a Series
danfo.Series.copy() [source]
parameter:
Return: Series
Example
Node
1
const dfd = require("danfojs-node")
2
3
let data1 = [30.21091, 40.190901, 3.564, 5.0212]
4
let sf1 = new dfd.Series(data1)
5
let sf2 = sf1.copy()
6
7
sf2.print()
Copied!
Output
1
╔═══╤══════════════════════╗
2
║ │ 0 ║
3
╟───┼──────────────────────╢
4
║ 0 │ 30.21091 ║
5
╟───┼──────────────────────╢
6
║ 1 │ 40.190901 ║
7
╟───┼──────────────────────╢
8
║ 2 │ 3.564 ║
9
╟───┼──────────────────────╢
10
║ 3 │ 5.0212 ║
11
╚═══╧══════════════════════╝
Copied!
Last modified 1yr ago
Copy link