I have this code that works for a string, but need to apply it to a pandas column. Any ideas?
foo = "hey how are \n you doing today?"
foo = " ".join(foo.split())
output:
print(foo)
hey how are you doing today?
How to I apply this on a whole column of text within pandas?