Skip to content

Commit e9af149

Browse files
author
Thierry Moisan
committed
TST: Fix two failing tests on Windows pandas-dev#10631
1 parent b54f2db commit e9af149

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/test_frame.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -11629,7 +11629,7 @@ def test_apply_mixed_dtype_corner(self):
1162911629
result = df[:0].apply(np.mean, axis=1)
1163011630
# the result here is actually kind of ambiguous, should it be a Series
1163111631
# or a DataFrame?
11632-
expected = Series(np.nan, index=pd.Index([], dtype=int))
11632+
expected = Series(np.nan, index=pd.Index([], dtype='int64'))
1163311633
assert_series_equal(result, expected)
1163411634

1163511635
df = DataFrame({'A': ['foo'],
@@ -15458,7 +15458,8 @@ def test_to_csv_with_dst_transitions(self):
1545815458
ambiguous='infer')
1545915459

1546015460
for i in [times, times+pd.Timedelta('10s')]:
15461-
df = DataFrame({'A' : range(len(i))}, index=i)
15461+
time_range = np.array(range(len(i)), dtype='int64')
15462+
df = DataFrame({'A' : time_range}, index=i)
1546215463
df.to_csv(path,index=True)
1546315464

1546415465
# we have to reconvert the index as we

0 commit comments

Comments
 (0)