diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/analytics/basket_index.py | 4 | ||||
| -rw-r--r-- | python/cds_curve.py | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/python/analytics/basket_index.py b/python/analytics/basket_index.py index f6c2938f..cf40dda9 100644 --- a/python/analytics/basket_index.py +++ b/python/analytics/basket_index.py @@ -427,7 +427,9 @@ class MarkitBasketIndex(BasketIndex): self.index_quotes.close_price = 1 - self.index_quotes.close_price / 100 def _get_quotes(self): - quotes = self.index_quotes.loc[(self.value_date, self.version), "close_price"] + quotes = self.index_quotes.loc[ + (pd.Timestamp(self.value_date), self.version), "close_price" + ] return {self.tenors[t]: q for t, q in quotes.items()} diff --git a/python/cds_curve.py b/python/cds_curve.py index 3a4f04ed..ea9c39f2 100644 --- a/python/cds_curve.py +++ b/python/cds_curve.py @@ -96,6 +96,7 @@ if __name__ == "__main__": (index, series), ) (start_date,) = c.fetchone() + start_date = pd.Timestamp(start_date) else: start_date = None |
