aboutsummaryrefslogtreecommitdiffstats
path: root/python/analytics
diff options
context:
space:
mode:
Diffstat (limited to 'python/analytics')
-rw-r--r--python/analytics/basket_index.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/analytics/basket_index.py b/python/analytics/basket_index.py
index 4d57f944..8a2a7766 100644
--- a/python/analytics/basket_index.py
+++ b/python/analytics/basket_index.py
@@ -161,6 +161,9 @@ class BasketIndex(CreditIndex):
return super().pv(self.step_in_date, self.cash_settle_date, maturity,
self.yc, coupon, epsilon)
+ def pv_vec(self):
+ return super().pv_vec(self.step_in_date, self.cash_settle_date, self.yc).unstack(0)
+
def coupon_leg(self, maturity=None):
return self.index_desc.coupon.values * self.duration()