Rafal Wojdyla created SPARK-37601:
-------------------------------------

             Summary: 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.2.0, 3.1.2
            Reporter: Rafal Wojdyla


{noformat}

def foo(df: DataFrame, p: int) -> DataFrame
  ...

df.tranfrom(foo, p=3)

# vs

from functools import partial
df.tranform(partial(foo, p=3))
{noformat}



--
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

Reply via email to