Skip to content

Commit cf3b9bd

Browse files
committed
more windows fixing
1 parent efe6a76 commit cf3b9bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/indexing/test_timedelta.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ def test_boolean_indexing(self):
1313
[0, 1, 2, 10, 4, 5, 6, 7, 8, 9],
1414
[10, 10, 10, 3, 4, 5, 6, 7, 8, 9]]
1515
for cond, data in zip(conditions, expected_data):
16-
result = df.copy()
17-
result.loc[cond, 'x'] = 10
16+
result = df.assign(x=df.mask(cond, 10).astype('int64'))
1817
expected = pd.DataFrame(data,
1918
index=pd.to_timedelta(range(10), unit='s'),
2019
columns=['x'])

0 commit comments

Comments
 (0)