import pandas as pd
for line in open('whitespace.csv'):
    print(repr(line))
pd.read_csv('whitespace.csv', header=None, delimiter='\\s+')
How to make separator in read_csv more flexible wrt whitespace?