# Needed packages import pandas as pd # Import ''' use "s+" if columns are separatd by space''' df = pd.read_table("test.dat", sep="s+") print df