Skip to content

Commit

Permalink
* Fixed bug on windows with int32/int64 confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Mathieu Deschenes committed Jun 9, 2017
1 parent 2c2a221 commit 08f1409
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pandas/tests/indexing/test_timedelta.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_boolean_indexing(self):

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

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

0 comments on commit 08f1409

Please sign in to comment.