Skip to content

Commit 4d6dd59

Browse files
authored
CLN: pandas old version (#219) (#1139)
Co-authored-by: Mike Lync <[email protected]>
1 parent 262d37a commit 4d6dd59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/rateslib/periods/protocols/fixings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def _replace_fixings_with_ad_variables(
227227
for d, v in identifier[1].items()
228228
],
229229
)
230-
index = index.union(other=ad_series.index, sort=True) # type: ignore[arg-type]
230+
index = index.union(other=ad_series.index, sort=None) # type: ignore[arg-type] # will sort
231231
fixings.pop(name=identifier[0])
232232
fixings.add(
233233
name=identifier[0],

python/tests/test_curves.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2668,7 +2668,7 @@ def test_curve_method_from_curve_with_non_zero_index_lag(self):
26682668
],
26692669
)
26702670
def test_series_len_zero(self, curve, exp):
2671-
s = Series(data=[], index=[])
2671+
s = Series(data=[], index=[], dtype=float)
26722672
result = _try_index_value(0, "curve", s, dt(2000, 1, 1), curve)
26732673
assert isinstance(result, exp)
26742674

0 commit comments

Comments
 (0)