Skip to content

Commit f5d6409

Browse files
committed
ruff formatting
1 parent 3f2d1e7 commit f5d6409

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pandas/core/groupby/groupby.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3034,7 +3034,7 @@ def prod(self, numeric_only: bool = False, min_count: int = 0) -> NDFrameT:
30343034
--------
30353035
For SeriesGroupBy:
30363036
3037-
>>> lst = ['a', 'a', 'b', 'b']
3037+
>>> lst = ["a", "a", "b", "b"]
30383038
>>> ser = pd.Series([1, 2, 3, 4], index=lst)
30393039
>>> ser
30403040
a 1
@@ -3050,8 +3050,11 @@ def prod(self, numeric_only: bool = False, min_count: int = 0) -> NDFrameT:
30503050
For DataFrameGroupBy:
30513051
30523052
>>> data = [[1, 8, 2], [1, 2, 5], [2, 5, 8], [2, 6, 9]]
3053-
>>> df = pd.DataFrame(data, columns=["a", "b", "c"],
3054-
... index=["tiger", "leopard", "cheetah", "lion"])
3053+
>>> df = pd.DataFrame(
3054+
... data,
3055+
... columns=["a", "b", "c"],
3056+
... index=["tiger", "leopard", "cheetah", "lion"],
3057+
... )
30553058
>>> df
30563059
a b c
30573060
tiger 1 8 2

0 commit comments

Comments
 (0)