Skip to content

Commit 973cf72

Browse files
committed
change according to comments
1 parent 6926029 commit 973cf72

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Diff for: pandas/core/panel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def _init_data(self, data, copy, dtype, **kwargs):
190190
raise ValueError('Panel constructor not properly called!')
191191

192192
NDFrame.__init__(self, mgr, axes=axes, copy=copy, dtype=dtype)
193-
193+
te
194194
def _init_dict(self, data, axes, dtype=None):
195195
haxis = axes.pop(self._info_axis_number)
196196

Diff for: pandas/tests/groupby/test_apply.py

+1-1
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'])

Diff for: pandas/tests/groupby/test_groupby.py

+3-4
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)