This is a verified interview question from Amex. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "PySpark Question: Implement UDF Functions Amex - IIT Roorkee" covers key patterns like Other.
"**Mode:** On-Campus **Exam Pattern:** 3 Coding Questions **OA Date:** 2026-10-26 You are given two files for a PySpark programming task. One of the files, `udfs.py`, contains three user-defined functions (UDFs) that need to be completed according to the rules and requirements specified in the problem statement. Your task is to implement all three functions in `udfs.py` while following the given rules. ## Requirements - Complete all three functions in `udfs.py`. - Follow the specified logic and rules for each function. - Ensure the implementations are compatible with PySpark. - Use the provided files and their instructions to determine the expected inputs, outputs, and behavior of each function. ## Expected Output Submit the completed `udfs.py` file with all three functions implemented correctly."
Join thousands of developers practicing for Amex.