MCPcopy Create free account
hub / github.com/apache/spark-connect-rust / transform

Method transform

crates/connect/src/dataframe.rs:1231–1236  ·  view source on GitHub ↗

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 from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

test_df_transformFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_df_transformFunction · 0.64