Contents

1
2 1: る螳 譟伎 所鍵
3 2: る螳 譟伎讌 所鍵, る 豢螳蠍
4 3: top n螳襷 所鍵
5 4: n螳 skip蠍


1 #

d:\pydata 襴 殊 り 螳

2 1: る螳 譟伎 所鍵 #

ex1 = pd.read_table("d:\pydata\ex1.txt", sep=",", header=0)
ex1
ex1.columns
ex1.index

3 2: る螳 譟伎讌 所鍵, る 豢螳蠍 #

覦覯1
names = ["col1", "col2"]
ex2 = pd.read_table("d:\pydata\ex2.txt", names=names, sep=",", header=None)
ex2

覦覯2
ex2 = pd.read_table("d:\pydata\ex2.txt", sep=",", header=None)
ex2.columns = ["col1", "col2"]
ex2

4 3: top n螳襷 所鍵 #

ex1 = pd.read_table("d:\pydata\ex1.txt", sep=",", header=0, nrows=2)
ex1

5 4: n螳 skip蠍 #

ex1 = pd.read_table("d:\pydata\ex1.txt", sep=",", header=0, skiprows=2)
ex1


CategoryMachineLearning