Custom functions provide advanced means of manipulating data. Users can upload custom functions written in Python to MindsDB and apply them to data.Documentation Index
Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
You can upload your custom functions via the MindsDB editor by clickingAdd and Upload custom functions, like this:


-
The Python file stores an implementation of your custom functions. Here is the sample format:
Note that if the input and output types are not set, then
stris used by default.
Example
Example
-
The optional requirements file, or
requirements.txt, stores all dependencies along with their versions. Here is the sample format:
Example
Example
Example
We upload the custom functions, as below:
functions.py file that stores an implementation of the functions and the requirements.txt file that stores all the dependencies. We named the storage collection as custom_functions.
Now we can use the functions as below: