Skip to content

Commit 6e0d900

Browse files
committed
Use randn in test
1 parent 1a3b4aa commit 6e0d900

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/tseries/tests/test_resample.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -2934,9 +2934,8 @@ def test_consistency_with_window(self):
29342934
def test_median_duplicate_columns(self):
29352935
# GH 14233
29362936

2937-
df = pd.DataFrame(np.array([[i + j for i in range(20)]
2938-
for j in [0, 100, 1000]])
2939-
.T, columns=list('aaa'),
2937+
df = pd.DataFrame(np.random.randn(20, 3),
2938+
columns=list('aaa'),
29402939
index=pd.date_range('2012-01-01',
29412940
periods=20, freq='s'))
29422941
df2 = df.copy()

0 commit comments

Comments
 (0)