How to define write Option in a DLT using Python?

pablociu
New Contributor

In a normal notebook I would save metadata to my Delta table using the following code:

(
  df.write
    .format("delta")
    .mode("overwrite")
    .option("userMetadata", user_meta_data) 
    .saveAsTable("my_table")
)

But I couldn't find online how can I set up the '.option("userMetadata...' in a DLT. Is there a document I couldn't find that would explain how to set up this?