@@ -575,7 +575,7 @@ def test_replace_mapper_all(df_simple, rows):
575575 np .array ([10 ,2 ,46 ,67 ,98 ,300 ]))
576576
577577 assert new_navdata ["names" ].dtype == object
578- assert new_navdata ["integers" ].dtype == int
578+ assert np . issubdtype ( new_navdata ["integers" ].dtype , int )
579579 assert new_navdata ["floats" ].dtype == np .float64
580580 assert new_navdata ["strings" ].dtype == object
581581
@@ -589,7 +589,7 @@ def test_replace_mapper_all(df_simple, rows):
589589 np .array ([10 ,2 ,46 ,67 ,98 ,300 ]))
590590
591591 assert data_temp ["names" ].dtype == object
592- assert data_temp ["integers" ].dtype == int
592+ assert np . issubdtype ( data_temp ["integers" ].dtype , int )
593593 assert data_temp ["floats" ].dtype == np .float64
594594 assert data_temp ["strings" ].dtype == object
595595
@@ -634,7 +634,7 @@ def test_replace_mapper_partial(df_simple, rows):
634634 np .array ([10 ,2 ,45 ,67 ,98 ,300 ]))
635635
636636 assert new_navdata ["names" ].dtype == object
637- assert new_navdata ["integers" ].dtype == int
637+ assert np . issubdtype ( new_navdata ["integers" ].dtype , int )
638638 assert new_navdata ["floats" ].dtype == np .float64
639639 assert new_navdata ["strings" ].dtype == object
640640
@@ -648,7 +648,7 @@ def test_replace_mapper_partial(df_simple, rows):
648648 np .array ([10 ,2 ,45 ,67 ,98 ,300 ]))
649649
650650 assert data_temp ["names" ].dtype == object
651- assert data_temp ["integers" ].dtype == int
651+ assert np . issubdtype ( data_temp ["integers" ].dtype , int )
652652 assert data_temp ["floats" ].dtype == np .float64
653653 assert data_temp ["strings" ].dtype == object
654654
@@ -692,7 +692,7 @@ def test_replace_mapper_type_change(df_simple):
692692 assert data ["names" ].dtype == object
693693 assert data ["integers" ].dtype == object
694694 assert data ["floats" ].dtype == np .float64
695- assert data ["strings" ].dtype == int
695+ assert np . issubdtype ( data ["strings" ].dtype , int )
696696
697697def test_rename_mapper_and_rows (df_simple ):
698698 """Test data renaming functionality with type changes and row names.
0 commit comments