We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bbcaed commit a4d59cfCopy full SHA for a4d59cf
faslr/demos/index/index_matrix_demo.py
@@ -7,7 +7,7 @@
7
import sys
8
9
from faslr.index import (
10
- index_matrix,
+ FIndex,
11
IndexMatrixWidget
12
)
13
@@ -25,19 +25,15 @@
25
if TYPE_CHECKING:
26
from pandas import DataFrame
27
28
-rate_factors = [
29
- x + 1 for x in XYZ_RATE_CHANGES
30
-]
31
-
32
-df_rl: DataFrame = index_matrix(
33
- years=XYZ_SAMPLE_YEARS,
34
- index=rate_factors
+index = FIndex(
+ origin=XYZ_SAMPLE_YEARS,
+ changes=XYZ_RATE_CHANGES
35
36
37
app = QApplication(sys.argv)
38
39
index_matrix_widget = IndexMatrixWidget(
40
- matrix=df_rl
+ matrix=index.matrix
41
42
index_matrix_widget.setWindowTitle("Index Matrix Demo")
43
0 commit comments