[ https://issues.apache.org/jira/browse/SPARK-37601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafal Wojdyla updated SPARK-37601: ---------------------------------- Description: {code:python} def foo(df: DataFrame, p: int) -> DataFrame ... # current: from functools import partial df.transform(partial(foo, p=3)) # or: df.transform(lambda df: foo(df, p=3)) # vs suggested: df.transform(foo, p=3) {code} was: {code:python} def foo(df: DataFrame, p: int) -> DataFrame ... # current: from functools import partial df.transform(partial(foo, p=3)) # or df.transform(lambda df: foo(df, p=3)) # vs suggested: df.transform(foo, p=3) {code} > Could/should sql.DataFrame.transform accept function parameters? > ---------------------------------------------------------------- > > Key: SPARK-37601 > URL: https://issues.apache.org/jira/browse/SPARK-37601 > Project: Spark > Issue Type: Improvement > Components: PySpark > Affects Versions: 3.1.2, 3.2.0 > Reporter: Rafal Wojdyla > Priority: Major > > {code:python} > def foo(df: DataFrame, p: int) -> DataFrame > ... > # current: > from functools import partial > df.transform(partial(foo, p=3)) > # or: > df.transform(lambda df: foo(df, p=3)) > # vs suggested: > df.transform(foo, p=3) > {code} -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org