@@ -2663,11 +2663,11 @@ def test_nonmtmxcs_cashflows(self, curve, curve2) -> None:
26632663 expected = DataFrame (
26642664 {
26652665 "Type" : ["Cashflow" , "FloatPeriod" ],
2666- "Period" : [None , "Regular" ],
2666+ "Period" : [np . nan , "Regular" ],
26672667 "Ccy" : ["NOK" , "USD" ],
26682668 "Notional" : [- 10000000 , - 10000000.0 ],
26692669 "FX Rate" : [0.10002256337062124 , 1.0 ],
2670- "FX Fixing" : [None , 0.09967340252423884 ],
2670+ "FX Fixing" : [np . nan , 0.09967340252423884 ],
26712671 },
26722672 index = MultiIndex .from_tuples ([("leg1" , 0 ), ("leg2" , 8 )]),
26732673 )
@@ -2950,11 +2950,11 @@ def test_nonmtmfixxcs_cashflows(self, curve, curve2) -> None:
29502950 expected = DataFrame (
29512951 {
29522952 "Type" : ["Cashflow" , "FloatPeriod" ],
2953- "Period" : [None , "Regular" ],
2953+ "Period" : [np . nan , "Regular" ],
29542954 "Ccy" : ["NOK" , "USD" ],
29552955 "Notional" : [- 10000000 , - 10000000.0 ],
29562956 "FX Rate" : [0.10002256337062124 , 1.0 ],
2957- "FX Fixing" : [None , 0.09967340252423884 ],
2957+ "FX Fixing" : [np . nan , 0.09967340252423884 ],
29582958 },
29592959 index = MultiIndex .from_tuples ([("leg1" , 0 ), ("leg2" , 8 )]),
29602960 )
@@ -3731,12 +3731,12 @@ def test_mtmxcs_cashflows(self, curve, curve2) -> None:
37313731 expected = DataFrame (
37323732 {
37333733 "Type" : ["Cashflow" , "FloatPeriod" , "MtmCashflow" ],
3734- "Period" : [None , "Regular" , None ],
3734+ "Period" : [np . nan , "Regular" , np . nan ],
37353735 "Ccy" : ["NOK" , "USD" , "USD" ],
37363736 "Notional" : [- 10000000 , - 10000000.0 , 10000000.0 ],
3737- "Rate" : [None , 8.181151773810475 , None ],
3737+ "Rate" : [np . nan , 8.181151773810475 , np . nan ],
37383738 "FX Rate" : [0.10002256337062124 , 1.0 , 1.0 ],
3739- "FX Fixing" : [None , 0.0990019249688802 , 0.09829871161519926 ],
3739+ "FX Fixing" : [np . nan , 0.0990019249688802 , 0.09829871161519926 ],
37403740 },
37413741 index = MultiIndex .from_tuples ([("leg1" , 0 ), ("leg2" , 11 ), ("leg2" , 14 )]),
37423742 )
0 commit comments