# txt file into pandas

I have a txt file where values are randomly separated, sometimes there is a single space, and sometimes there are many. I am importing the file into pandas with pd.read_csv, but I get only one column in my DataFrame. How can I define the sep parameter to read the values properly?

pd.read_csv(... sep='\s+', ...)

Also, consider adding the parameter delim_whitespace as such:
pd.read_csv(..., delim_whitespace=True, ...)