Skip to content

Commit 7e5dd10

Browse files
author
John Bogaardt
committed
align key_labels with index
1 parent 89ed26a commit 7e5dd10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chainladder/core/dunders.py

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def _prep_index(self, x, y):
7575
# Broadcast to the triangle with a larger multi-index
7676
kdims = x.kdims if len(x.key_labels) > len(y.key_labels) else y.kdims
7777
y.kdims = x.kdims = kdims
78+
key_labels = x.key_labels if len(x.key_labels) > len(y.key_labels) else y.key_labels
79+
y.key_labels = x.key_labels = key_labels
7880
return x, y
7981
a, b = set(x.key_labels), set(y.key_labels)
8082
common = a.intersection(b)

0 commit comments

Comments
 (0)