With python I'd decompose that one-liner into several variables for readability. That probably ends up using more memory than it would otherwise but I generally don't work on systems where that matters much.
Scala was really nice for this syntax when I used it for Spark.
Scala was really nice for this syntax when I used it for Spark.