Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.11 KB

series.copy.md

File metadata and controls

45 lines (36 loc) · 1.11 KB
description
Makes a deep copy of a Series

Series.copy

danfo.Series.copy()

parameter:

Return: Series

Example

{% tabs %} {% tab title="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()

{% endtab %} {% endtabs %}

{% tabs %} {% tab title="Output" %}

╔═══╤══════════════════════╗
║   │ 0                    ║
╟───┼──────────────────────╢
║ 0 │ 30.21091             ║
╟───┼──────────────────────╢
║ 1 │ 40.190901            ║
╟───┼──────────────────────╢
║ 2 │ 3.564                ║
╟───┼──────────────────────╢
║ 3 │ 5.0212               ║
╚═══╧══════════════════════╝

{% endtab %} {% endtabs %}