MCPcopy Index your code
hub / github.com/javascriptdata/danfojs / copy

Method copy

src/danfojs-base/core/series.ts:870–878  ·  view source on GitHub ↗

* Makes a deep copy of a Series * @example * ``` * const sf = new Series([1, 2, 3, 4, 5, 6]); * const sf2 = sf.copy(); * ``` *

()

Source from the content-addressed store, hash-verified

868 *
869 */
870 copy(): Series {
871 const sf = new Series([...this.values], {
872 columns: [...this.columns],
873 index: [...this.index],
874 dtypes: [...this.dtypes],
875 config: { ...this.config }
876 });
877 return sf;
878 }
879
880
881 /**

Callers 11

headMethod · 0.95
tailMethod · 0.95
resetIndexMethod · 0.95
setIndexMethod · 0.95
mapMethod · 0.95
applyMethod · 0.95
absMethod · 0.95
replaceMethod · 0.95
dropNaMethod · 0.95
dropDuplicatesMethod · 0.95
asTypeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected