In the context of Pandas UDFs, explain the concept of data locality and its importance when working with distributed datasets in Spark. Provide an example of how you would optimize data locality in a Pandas UDF. | Databricks Certified Machine Learning - Associate Quiz - LeetQuiz