I need to skip lines in a text file : I'm very new to Python and we are using pandas to read a text file and retrieve data from specific lines.  There are 44 lines listed in my text file but I only need from line 35 -44.  And I need to exclude everything but "President", "Took office", "Left Office", "Party".  I have this function but its not reading my df1 that will be my dataframe.

def party_list():
    df1 = pd.read_table("presidents.txt", delimiter=",",usecols=["President ", "Took office ","Left office ", "Party "])
    location1=r' /users/Paula/PycharmProjects/Spring 2018_Paula/ '
f = open("presidents.txt",'r')
while True:
    line = f.readline()
    if line == "":
        break
    print(line)