@@ -437,7 +437,7 @@ def test_loc_to_fail(self):
437
437
438
438
# raise a KeyError?
439
439
msg = (
440
- r"\"None of \[Int64Index \(\[1, 2\], dtype='int64'\)\] are "
440
+ r"\"None of \[NumericIndex \(\[1, 2\], dtype='int64'\)\] are "
441
441
r"in the \[index\]\""
442
442
)
443
443
with pytest .raises (KeyError , match = msg ):
@@ -455,7 +455,7 @@ def test_loc_to_fail2(self):
455
455
s .loc [- 1 ]
456
456
457
457
msg = (
458
- r"\"None of \[Int64Index \(\[-1, -2\], dtype='int64'\)\] are "
458
+ r"\"None of \[NumericIndex \(\[-1, -2\], dtype='int64'\)\] are "
459
459
r"in the \[index\]\""
460
460
)
461
461
with pytest .raises (KeyError , match = msg ):
@@ -471,7 +471,7 @@ def test_loc_to_fail2(self):
471
471
472
472
s ["a" ] = 2
473
473
msg = (
474
- r"\"None of \[Int64Index \(\[-2\], dtype='int64'\)\] are "
474
+ r"\"None of \[NumericIndex \(\[-2\], dtype='int64'\)\] are "
475
475
r"in the \[index\]\""
476
476
)
477
477
with pytest .raises (KeyError , match = msg ):
@@ -488,7 +488,7 @@ def test_loc_to_fail3(self):
488
488
df = DataFrame ([["a" ], ["b" ]], index = [1 , 2 ], columns = ["value" ])
489
489
490
490
msg = (
491
- r"\"None of \[Int64Index \(\[3\], dtype='int64'\)\] are "
491
+ r"\"None of \[NumericIndex \(\[3\], dtype='int64'\)\] are "
492
492
r"in the \[index\]\""
493
493
)
494
494
with pytest .raises (KeyError , match = msg ):
@@ -508,7 +508,7 @@ def test_loc_getitem_list_with_fail(self):
508
508
with pytest .raises (
509
509
KeyError ,
510
510
match = re .escape (
511
- "\" None of [Int64Index ([3], dtype='int64')] are in the [index]\" "
511
+ "\" None of [NumericIndex ([3], dtype='int64')] are in the [index]\" "
512
512
),
513
513
):
514
514
s .loc [[3 ]]
@@ -1218,7 +1218,7 @@ def test_loc_setitem_empty_append_raises(self):
1218
1218
df = DataFrame (columns = ["x" , "y" ])
1219
1219
df .index = df .index .astype (np .int64 )
1220
1220
msg = (
1221
- r"None of \[Int64Index \(\[0, 1\], dtype='int64'\)\] "
1221
+ r"None of \[NumericIndex \(\[0, 1\], dtype='int64'\)\] "
1222
1222
r"are in the \[index\]"
1223
1223
)
1224
1224
with pytest .raises (KeyError , match = msg ):
0 commit comments