Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
In the context of Pandas UDFs, explain the concept of lazy execution and its benefits when working with large datasets in Spark. Provide an example of how you would implement lazy execution in a Pandas UDF.
A
Lazy execution refers to the ability to defer the execution of certain operations or transformations until they are actually needed or used.
B
Lazy execution refers to the ability to execute operations or transformations immediately, but with the option to cache or store the results for later use.
C
Lazy execution refers to the ability to execute operations or transformations in parallel, without waiting for other operations to complete.
D
Lazy execution is not a relevant concept when working with Pandas UDFs in Spark.