ex1 = pd.read_table("d:\pydata\ex1.txt", sep=",", header=0) ex1 ex1.columns ex1.index
names = ["col1", "col2"] ex2 = pd.read_table("d:\pydata\ex2.txt", names=names, sep=",", header=None) ex2
ex2 = pd.read_table("d:\pydata\ex2.txt", sep=",", header=None) ex2.columns = ["col1", "col2"] ex2