Python Replace Space With Underscore In List, columns = … This article goes in detailed on python string replace whitespace with underscore.