diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/position.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/python/position.py b/python/position.py index f3d79909..3bb6b67b 100644 --- a/python/position.py +++ b/python/position.py @@ -24,8 +24,7 @@ def get_list( ) else: positions = pd.read_sql_table("securities", engine) - positions.identifier = positions.figi - positions["bbg_id"] = positions.identifier + " " + positions.bbg_type + positions["bbg_id"] = positions.figi + " " + positions.bbg_type positions.set_index("bbg_id", inplace=True) return positions @@ -92,7 +91,6 @@ def update_securities(engine, session, workdate): data = data[ data.CPN_ASOF_DT.isnull() | (data.CPN_ASOF_DT <= pd.Timestamp(workdate)) ] - m = securities.merge(data, left_index=True, right_index=True) conn = engine.raw_connection() with conn.cursor() as c: |
