MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / func_map

Function func_map

src/danfojs-node/test/core/series.test.ts:864–866  ·  view source on GitHub ↗
(x: any)

Source from the content-addressed store, hash-verified

862 it("map series element to a function statement", function () {
863 const sf = new Series([1, 2, 3, 4]);
864 const func_map = (x: any) => {
865 return x + 1;
866 };
867 const rslt = [2, 3, 4, 5];
868 assert.deepEqual((sf.map(func_map)).values, rslt);
869 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected