Returns a new [DataFrame] based on a provided closure. # Example: ``` // the closure will capture this variable from the current scope let val = 100; let add_new_col = |df: DataFrame| -> DataFrame { df.withColumn("new_col", lit(val)).select("new_col") }; df = df.transform(add_new_col); ```
(self, mut func: F)
source not stored for this graph (policy: none)
no outgoing calls