Skip to content

Commit fd3c0db

Browse files
committed
Conform to PEP8
1 parent e6f3884 commit fd3c0db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tests/groupby/test_grouping.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ def test_grouper_period_index(self):
153153
# GH 32108
154154
periods = 2
155155
index = pd.period_range(start="2018-01", periods=periods, freq="M")
156-
periodSerie = pd.Series(range(periods), index=index)
157-
periodSerie.index.name = "Month"
158-
result = periodSerie.groupby(periodSerie.index.month).sum()
156+
period_serie = pd.Series(range(periods), index=index)
157+
period_serie.index.name = "Month"
158+
result = period_serie.groupby(period_serie.index.month).sum()
159159

160160
expected = pd.Series(range(0, periods), index=range(1, periods + 1))
161-
expected.index.name = periodSerie.index.name
161+
expected.index.name = period_serie.index.name
162162
tm.assert_series_equal(result, expected)
163163

164164
def test_grouper_multilevel_freq(self):

0 commit comments

Comments
 (0)