Execute a python function on every row
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
main
.
The function will receive the row as a dictionary and should return the transformed row.
For example:
kwargs.get('COLUMN_NAME')