I have a string column foo in my DataFrame. I need to create a new column bar, whose values are derived from corresponding foo values by a sequence of string-processing operations - a bunch of str.split()s and str.join()s in this particular case.
What is the most efficient way to do this?