aboutsummaryrefslogtreecommitdiffstats
path: root/python/index_data.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/index_data.py')
-rw-r--r--python/index_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/index_data.py b/python/index_data.py
index a4f76113..730a4e8a 100644
--- a/python/index_data.py
+++ b/python/index_data.py
@@ -173,4 +173,4 @@ def get_tranche_quotes(index_type, series, tenor, date=datetime.date.today()):
conn = dbconn('serenitasdb')
with conn.cursor() as c:
c.callproc("get_tranche_quotes", (index_type, series, tenor, date))
- return c.fetchall()
+ return pd.DataFrame.from_records(dict(d) for d in c)