def load_deliveries(files, con, table):
    if_exists = 'replace'
    for file in files:
        df = pd.read_csv(file)
        df.to_sql(table, con, if_exists=if_exists)
        if_exists = 'append'
        log.info('loaded %d records from %s', len(df), file)
def load_deliveries(files, con, table):
    if_exists = 'replace'
    for file in files:
        df = pd.read_csv(file)
        df.to_sql(table, con, if_exists=if_exists)
        if_exists = 'append'
        log.info('loaded %d records from %s', len(df), file)