Skip to content

Commit 08f1409

Browse files
author
Jean-Mathieu Deschenes
committed
* Fixed bug on windows with int32/int64 confusion
1 parent 2c2a221 commit 08f1409

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: pandas/tests/indexing/test_timedelta.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_boolean_indexing(self):
2222

2323
def test_list_like_indexing(self):
2424
# GH 16637
25-
df = pd.DataFrame({'x': range(10)})
25+
df = pd.DataFrame({'x': range(10)}, dtype="int64")
2626
df.index = pd.to_timedelta(range(10), unit='s')
2727

2828
conditions = [df.index[0], df.index[4:8], df.index[[3, 5]]]
@@ -34,5 +34,6 @@ def test_list_like_indexing(self):
3434
result.loc[cond, 'x'] = 20
3535
expected = pd.DataFrame(data,
3636
index=pd.to_timedelta(range(10), unit='s'),
37-
columns=['x'])
37+
columns=['x'],
38+
dtype="int64")
3839
tm.assert_frame_equal(expected, result)

0 commit comments

Comments
 (0)