diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/bbg_prices.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/bbg_prices.py b/python/bbg_prices.py index 34991611..82071c08 100644 --- a/python/bbg_prices.py +++ b/python/bbg_prices.py @@ -3,6 +3,12 @@ from sqlalchemy import create_engine import numpy as np import pandas as pd +from psycopg2.extensions import adapt, register_adapter +def adapt_nat(nat): + return None + +register_adapter(pandas.tslib.NaTType, adapt_nat) + engine = create_engine('postgresql://et_user@debian/ET') fields_update = ["LN_ISSUE_STATUS", "AMT_OUTSTANDING", "PX_LAST","LAST_UPDATE_DT", |
