I have a text file that is laid out like this:
Text Text
Text Text Text Text Text
Text Num Num Num Num
Text Num Num Num Num
Text Num Num Num Num
My code is:
def readData():
myList =[]
myFile = open("football.txt", "r")
for lines in myFile:
league = lines.split()
myList.append(league)
return myList
How can I skip the first two row so I can store everything else into my list?
numpy.genfromtxt(docs) withskip_header=2myList = myList[2:]