MCPcopy Create free account
hub / github.com/pathwaycom/pathway / fun

Function fun

python/pathway/tests/test_api.py:1222–1230  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

1220 table = s.table(universe, [column])
1221
1222 def fun(values):
1223 [inner] = values
1224 assert type(value) is type(inner)
1225 if isinstance(value, np.ndarray):
1226 assert value.dtype == inner.dtype
1227 assert np.array_equal(value, inner)
1228 else:
1229 assert value == inner
1230 return inner
1231
1232 new_column = s.map_column(table, fun, api.ColumnProperties(dtype=dtype))
1233 new_table = s.table(universe, [new_column])

Callers 7

wrapperFunction · 0.50
_joins_blockFunction · 0.50
invokeMethod · 0.50
wrappedMethod · 0.50
fun_wrappedFunction · 0.50
_get_rowMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected