We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94bae0b commit d92cf3cCopy full SHA for d92cf3c
pandas/tests/test_groupby.py
@@ -6568,14 +6568,14 @@ def test_group_shift_with_null_key(self):
6568
# values in column `B`, and then group by [`A`, `B`]. This should
6569
# force `-1` in `labels` array of `gr_.grouper.group_info` exactly
6570
# at those places, where the group-by key is partilly missing.
6571
- df = pd.DataFrame([(i%12, i%3 if i%3 else float("nan"), i)
+ df = pd.DataFrame([(i % 12, i % 3 if i % 3 else float("nan"), i)
6572
for i in range(n_rows)], dtype=float,
6573
columns=["A", "B", "Z"], index=None)
6574
gr_ = df.groupby(["A", "B"])
6575
6576
# Generate teh expected dataframe
6577
- expected = pd.DataFrame([(i%12, i%3 if i%3 else float("nan"),
6578
- i + 12 if i%3 and i < n_rows - 12 \
+ expected = pd.DataFrame([(i % 12, i % 3 if i % 3 else float("nan"),
+ i + 12 if i % 3 and i < n_rows - 12
6579
else float("nan"))
6580
6581
0 commit comments