@@ -409,7 +409,7 @@ def test_downcast(self):
409
409
'int64' : [np .iinfo (np .int64 ).min , np .iinfo (np .int64 ).max ]
410
410
}
411
411
412
- for dtype , min_max in integer_dtype_min_max .iteritems ():
412
+ for dtype , min_max in integer_dtype_min_max .items ():
413
413
series = pd .to_numeric (pd .Series (min_max ), downcast = 'integer' )
414
414
tm .assert_equal (series .dtype , dtype )
415
415
@@ -421,7 +421,7 @@ def test_downcast(self):
421
421
# 'uint64': [np.iinfo(np.uint64).min, np.iinfo(np.uint64).max]
422
422
}
423
423
424
- for dtype , min_max in unsigned_dtype_min_max .iteritems ():
424
+ for dtype , min_max in unsigned_dtype_min_max .items ():
425
425
series = pd .to_numeric (pd .Series (min_max ), downcast = 'unsigned' )
426
426
tm .assert_equal (series .dtype , dtype )
427
427
@@ -433,7 +433,7 @@ def test_downcast(self):
433
433
'int64' : [np .iinfo (np .int32 ).min , np .iinfo (np .int32 ).max + 1 ],
434
434
}
435
435
436
- for dtype , min_max in integer_dtype_min_max_plus .iteritems ():
436
+ for dtype , min_max in integer_dtype_min_max_plus .items ():
437
437
series = pd .to_numeric (pd .Series (min_max ), downcast = 'integer' )
438
438
tm .assert_equal (series .dtype , dtype )
439
439
@@ -443,7 +443,7 @@ def test_downcast(self):
443
443
'int64' : [np .iinfo (np .int32 ).min - 1 , np .iinfo (np .int64 ).max ]
444
444
}
445
445
446
- for dtype , min_max in integer_dtype_min_max_minus .iteritems ():
446
+ for dtype , min_max in integer_dtype_min_max_minus .items ():
447
447
series = pd .to_numeric (pd .Series (min_max ), downcast = 'integer' )
448
448
tm .assert_equal (series .dtype , dtype )
449
449
@@ -453,7 +453,7 @@ def test_downcast(self):
453
453
# 'uint64': [np.iinfo(np.uint32).min, np.iinfo(np.uint32).max + 1],
454
454
}
455
455
456
- for dtype , min_max in unsigned_dtype_min_max_plus .iteritems ():
456
+ for dtype , min_max in unsigned_dtype_min_max_plus .items ():
457
457
series = pd .to_numeric (pd .Series (min_max ), downcast = 'unsigned' )
458
458
tm .assert_equal (series .dtype , dtype )
459
459
0 commit comments