Turn generated code into functions
Convert the Mito generated code into a Python function to make it even easier to reuse.
Last updated
Convert the Mito generated code into a Python function to make it even easier to reuse.
Last updated
© Mito
Functions make it easy to reuse the code you generated over and over again. In particular, they make it easy to apply the same code to multiple data sets.
Functions in Python are similiar to formulas in Excel.
If you're a Mito Enterprise user, you can have Mito automatically generate code as Python functions.
Open the Code
tab in the toolbar.
Click on Configure Code
In the taskpane, toggle Generate Function
on
Give the function a name
The Mito generated code will automatically update to generate a function. As you continue to edit the Mito spreadsheet, the function will update.