CodeExecution
dynamic column will execute a python function on every row of your dataset.
This can be useful to transform your data, which is often useful as an intermediary step for running evaluations or prompts.
Output type: any
Inputs
- Code: The code to be executed.
main
.
The function will receive the row as a dictionary and should return the transformed row.
For example:
You can access data from any column using
kwargs.get('COLUMN_NAME')