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

Function func_map

src/danfojs-browser/tests/core/series.test.js:863–865  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected