Whenever you're ready, walk me through how you'd approach this.
You're reviewing a simple PySpark transformation and want to be clear on when to return one output per input row versus multiple outputs.
Explain the difference between map and flatMap transformations in PySpark with concrete examples.