.apply() and passing callables
Some pandas functions, like df.apply(f)
, support an arbitrary function as a parameter.
Most of the time, Terality will support these functions without any change.
In a few situations, Terality won't be able to transfer the arbitrary function defined in your code to the Terality servers. This page lists which scenarios are supported, and which are currently not.
Supported cases
Terality accepts functions (and lambdas) that depend on known modules:
functions from the Python 3.8 standard library:
functions from pandas
functions from numpy:
functions (or lambdas) defined by the user in the current module:
and any combination of the supported cases mentioned previously
Unsupported cases
Terality currently does not support functions:
using third party dependencies other than numpy and pandas
defined in other modules:
referencing a Terality structure:
Additionally, functions with side effects (such as accessing the network or writing to disk) are not supported. They may return the correct result, raise an error, or silently return an incorrect result.
Last updated