MrPowers commented on pull request #23877:
URL: https://github.com/apache/spark/pull/23877#issuecomment-674450064


   @hoffrocket pointed out that this can also be accomplished with an inner 
lambda (to avoid having to name the inner function):
   
   ```python
   def with_funny(something_funny):
       return lambda df: (
           df.withColumn("funny1", F.lit(something_funny))
       )
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to