import os import pandas import validators def read_data_file(data_file, usecols): with open(data_file.path, 'r', encoding='UTF-8') as file_handle: return pandas.read_csv( file_handle, sep='\t', decimal=data_file.separator, header=0, index_col=False, skiprows=data_file.skip, usecols=usecols) def write_excel_file(path, data_frame): data_frame.to_excel(path)