Exemple #1
0
def fximport():

    if not demo:
        FXImport.fximport()
    df = pd.read_csv('Common/FX rates.csv', parse_dates = ['FXDate'])
    df.to_sql('fxrates', engine, if_exists = 'replace')
    sql.execute("CREATE INDEX FX_FXdate_index ON money.fxrates (FXDate);", engine)
Exemple #2
0
def fximport():

    if not demo:
        FXImport.fximport()
    df = pd.read_csv('Common/FX rates.csv', parse_dates = ['FXDate'])
    df.to_sql('fxrates', engine, if_exists = 'replace')