I am using the poverty.txt file from the above link to construct linear regression in python. When I am trying to import the file using panda, I am getting a lot more spaces in between column. As a result I am not able to fetch correct results for the desired column. I am using the following code
from numpy import arange,array,ones#,random,linalg
from pylab import plot,show
from scipy import stats
import numpy as np
import pandas as pd
data = pd.read_csv('poverty.txt',delimiter='\t')
print "data=",data
print data[['Location','PovPct']]
I am getting the following output when I am printing the data: