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

Function add

src/danfojs-node/test/core/frame.test.ts:1592–1594  ·  view source on GitHub ↗
(x: any)

Source from the content-addressed store, hash-verified

1590 const df = new DataFrame(data)
1591
1592 const add = (x: any) => {
1593 return x + 1000
1594 }
1595 const expected = [[1000, 1002, 1004], [1360, 1180, 1360], [1000, 1002, 1004]]
1596 const dfApply = df.applyMap(add) as DataFrame
1597 assert.deepEqual(dfApply.values, expected)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected