You can use partition keys to define how to group data into partitions before the Python code runs.
You can configure one or more input fields as partition keys. The Python transformation uses the partition keys to repartition the data before the code runs. If you do not add an incoming field as a partition key, the data is processed using its default partitioning scheme.