Examples of Python Code-based Transformations
The articles in this section are a few examples of Python code-based Transformation scripts.
In each example, we have provided:
-
A sample Event on which to run the Transformation script.
-
The Python code-based Transformation script.
-
The output from the Transformation script.
Explore Examples of Python Code-based Transformations
- Adding Time to a Timestamp ValueLearn how to add a time duration in minutes to the value in a Timestamp column.
- Splitting an Event into Multiple Event TypesLearn how to split an Event received as a single object from the Source into multiple Event Types.
- Splitting Multiple Values in a Key into Separate EventsLearn how to split multiple values received in a key and store them as separate Events in the same Event Type.
- Splitting Nested Events into Multiple EventsLearn how to split a nested Event received from the Source into multiple separate Events.
Last updated on Mar 22, 2026