You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
401 B
14 lines
401 B
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) |