Skip to content

Commit 8bdde85

Browse files
committed
ruff format
1 parent 846b1d4 commit 8bdde85

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/groupby/groupby.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ def __call__(self, *args, **kwargs):
437437
color = kwargs.get("color", None)
438438
if colormap is not None and color is None:
439439
from pandas.plotting._matplotlib.style import get_standard_colors
440+
440441
group_keys = list(self._groupby.groups.keys())
441442
colors = get_standard_colors(
442443
num_colors=len(group_keys),
@@ -445,15 +446,19 @@ def __call__(self, *args, **kwargs):
445446
)
446447
kwargs = dict(kwargs)
447448
kwargs.pop("colormap", None)
449+
448450
def f(group, color, label):
449451
return group.plot(*args, color=color, label=label, **kwargs)
452+
450453
results = []
451454
for i, (name, group) in enumerate(self._groupby):
452455
results.append(f(group, colors[i], name))
453456
return results
454457
else:
458+
455459
def f(self):
456460
return self.plot(*args, **kwargs)
461+
457462
f.__name__ = "plot"
458463
return self._groupby._python_apply_general(f, self._groupby._selected_obj)
459464

0 commit comments

Comments
 (0)