import os import csv def get_file_path(filename): currentdirpath = os.getcwd() file_path = os.path.join(os.getcwd(), filename) print(file_path) return(f
If you are using numpy, have a look at the skip_header argument in genfromtxt (http://docs.scipy.org/doc/numpy/user/basics.io.genfromtxt.html )
import numpy as np r = np.genfromtxt(filepath, skip_header=9, names = ['account','amount'] , delimiter = ',') print(r.account[0],r.amount[0])