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 would consider using pandas, read_csv makes reading files very straightforward:
read_csv
import pandas as pd data = pd.read_csv(filename, skiprows=9)