utils.py
def read_csv_data(csv_file):
    """ Reader to parse the csv file"""
    data = []
    with open(args.input_file_path, encoding='utf-8', errors='ignore') as f:
        csv_reader = csv.reader(f, delimiter=',')
        for ind, row in enumerate(csv_reader):
            if ind == 0:
                header = row
            else:
                data.append(row)
    return header, data
 Reader to parse the csv file
Reader to parse the csv file
Reader to parse the csv file
def read_csv_data(csv_file):
    data = []
    with open(args.input_file_path, encoding='utf-8', errors='ignore') as f:
        csv_reader = csv.reader(f, delimiter=',')
        for ind, row in enumerate(csv_reader):
            if ind == 0:
                header = row
            else:
                data.append(row)
    return header, data
def read_csv_data ( csv_file ) : data = [ ] with open ( args . input_file_path , encoding = 'utf-8' , errors = 'ignore' ) as f : csv_reader = csv . reader ( f , delimiter = ',' ) for ind , row in enumerate ( csv_reader ) : if ind == 0 : header = row else : data . append ( row ) return header , data
Reader to parse the csv file
Reader to parse the csv file
""" Reader to parse the csv file"""
csv_file