Skip to content

Commit b64656d

Browse files
committed
change according to comments
1 parent 6926029 commit b64656d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pandas/tests/groupby/test_apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def test_apply_chunk_view():
350350
def test_apply_no_name_column_conflict():
351351
df = DataFrame({'name': [1, 1, 1, 1, 1, 1, 2, 2, 2, 2],
352352
'name2': [0, 0, 0, 1, 1, 1, 0, 0, 1, 1],
353-
'value': list(range(10))[::-1]})
353+
'value': range(9, -1, -1)})
354354

355355
# it works! #2605
356356
grouped = df.groupby(['name', 'name2'])

pandas/tests/groupby/test_groupby.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,10 @@ def test_len():
249249

250250
def test_basic_regression():
251251
# regression
252-
T = [1.0 * x for x in list(range(1, 10)) * 10][:1095]
253-
result = Series(T)
252+
result = Series([1.0 * x for x in list(range(1, 10)) * 10])
254253

255-
groupings = np.random.random((1100, ))
256-
groupings = Series(groupings) * 10.
254+
data = np.random.random(1100) * 10.
255+
groupings = Series(data)
257256

258257
grouped = result.groupby(groupings)
259258
grouped.mean()

0 commit comments

Comments
 (0)