daniel_sahal
Databricks MVP

You can also create a temporary view with the output from python code (one id = one row) and then inner join the view to the table. IMO will improve readability of your code.

View solution in original post