diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py index 96f72c0fbb2d1..0cae8b356b517 100644 --- a/pandas/tests/test_frame.py +++ b/pandas/tests/test_frame.py @@ -11629,7 +11629,7 @@ def test_apply_mixed_dtype_corner(self): result = df[:0].apply(np.mean, axis=1) # the result here is actually kind of ambiguous, should it be a Series # or a DataFrame? - expected = Series(np.nan, index=pd.Index([], dtype=int)) + expected = Series(np.nan, index=pd.Index([], dtype='int64')) assert_series_equal(result, expected) df = DataFrame({'A': ['foo'], @@ -15458,7 +15458,8 @@ def test_to_csv_with_dst_transitions(self): ambiguous='infer') for i in [times, times+pd.Timedelta('10s')]: - df = DataFrame({'A' : range(len(i))}, index=i) + time_range = np.array(range(len(i)), dtype='int64') + df = DataFrame({'A' : time_range}, index=i) df.to_csv(path,index=True) # we have to reconvert the index as we