diff options
Diffstat (limited to 'python/analytics')
| -rw-r--r-- | python/analytics/index.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/analytics/index.py b/python/analytics/index.py index 3cf21f33..ae80f211 100644 --- a/python/analytics/index.py +++ b/python/analytics/index.py @@ -4,7 +4,7 @@ import datetime import pandas as pd from .credit_default_swap import CreditDefaultSwap -from . import serenitas_engine, dawn_engine, DataError +from . import serenitas_engine, dawn_engine from .exceptions import MissingDataError try: @@ -127,7 +127,7 @@ class CreditIndex(CreditDefaultSwap): "FROM index_version WHERE index=%s AND series=%s ORDER BY version", (index_type, series), ) - self._indic = list(r) + self._indic = tuple(tuple(row) for row in r) self.index_type = index_type self.series = series self.tenor = tenor |
