File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -742,7 +742,6 @@ Prior Version Deprecations/Changes
742742~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
743743
744744- Remove ``DataFrame.delevel`` method in favor of ``DataFrame.reset_index``
745- (:issue:`420`)
746745
747746.. _whatsnew_0150.deprecations:
748747
Original file line number Diff line number Diff line change @@ -1066,8 +1066,8 @@ def test_reindex_doesnt_preserve_type_if_target_is_empty_index(self):
10661066 def get_reindex_type (target ):
10671067 return idx .reindex (target )[0 ].dtype .type
10681068
1069- self .assertEqual (get_reindex_type (pd .Int64Index ([])), np .int_ )
1070- self .assertEqual (get_reindex_type (pd .Float64Index ([])), np .float_ )
1069+ self .assertEqual (get_reindex_type (pd .Int64Index ([])), np .int64 )
1070+ self .assertEqual (get_reindex_type (pd .Float64Index ([])), np .float64 )
10711071 self .assertEqual (get_reindex_type (pd .DatetimeIndex ([])), np .datetime64 )
10721072
10731073 reindexed = idx .reindex (pd .MultiIndex ([pd .Int64Index ([]),
@@ -3367,7 +3367,7 @@ def test_reindex_lvl_preserves_type_if_target_is_empty_list_or_array(self):
33673367 # GH7774
33683368 idx = pd .MultiIndex .from_product ([[0 , 1 ], ['a' , 'b' ]])
33693369 self .assertEqual (idx .reindex ([], level = 0 )[0 ].levels [0 ].dtype .type ,
3370- np .int_ )
3370+ np .int64 )
33713371 self .assertEqual (idx .reindex ([], level = 1 )[0 ].levels [1 ].dtype .type ,
33723372 np .object_ )
33733373
You can’t perform that action at this time.
0 commit comments