Skip to content

Commit 26b8ee7

Browse files
flake8
1 parent 8a6de1a commit 26b8ee7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/groupby/aggregate/test_aggregate.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -881,15 +881,16 @@ def test_missing_raises(self):
881881
match = re.escape("Column(s) ['C'] do not exist")
882882
with pytest.raises(KeyError, match=match):
883883
df.groupby("A").agg(c=("C", "sum"))
884-
884+
885885
def test_groupby_aggregation_empty_group():
886886
# https://github.com/pandas-dev/pandas/issues/18869
887887
def f(x):
888888
if len(x) == 0:
889889
raise ValueError("length must not be 0")
890890
return len(x)
891891

892-
df = DataFrame({"A": pd.Categorical(['a', 'a'], categories=['a', 'b', 'c']), "B": [1, 1]})
892+
df = DataFrame({"A": pd.Categorical(['a', 'a'],
893+
categories=['a', 'b', 'c']), "B": [1, 1]})
893894
msg = 'length must not be 0'
894895
with pytest.raises(ValueError, match=msg):
895896
df.groupby('A').agg(f)

0 commit comments

Comments
 (0)