Skip to content

Commit 9dd4c07

Browse files
committed
[SPARK-37730][PYTHON][FOLLOWUP] Split comments to comply pycodestyle check
### What changes were proposed in this pull request? This is a follow-up of a backporting commit, bc54a3f . ### Why are the changes needed? The original commit doesn't pass the linter check because there was no lint check between SPARK-37380 and SPARK-37834. The content of this PR is a part of SPARK-37834. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the Python Linter. Closes #37146 from dongjoon-hyun/SPARK-37730. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent bc54a3f commit 9dd4c07

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

python/pyspark/pandas/plot/matplotlib.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ def _make_plot(self):
392392
kwds = self.kwds.copy()
393393

394394
label = pprint_thing(label if len(label) > 1 else label[0])
395-
# `if hasattr(...)` makes plotting compatible with pandas < 1.3, see pandas-dev/pandas#40078.
395+
# `if hasattr(...)` makes plotting compatible with pandas < 1.3,
396+
# see pandas-dev/pandas#40078.
396397
label = (
397398
self._mark_right_label(label, index=i)
398399
if hasattr(self, "_mark_right_label")
@@ -406,7 +407,8 @@ def _make_plot(self):
406407

407408
kwds = self._make_plot_keywords(kwds, y)
408409
artists = self._plot(ax, y, column_num=i, stacking_id=stacking_id, **kwds)
409-
# `if hasattr(...)` makes plotting compatible with pandas < 1.3, see pandas-dev/pandas#40078.
410+
# `if hasattr(...)` makes plotting compatible with pandas < 1.3,
411+
# see pandas-dev/pandas#40078.
410412
self._append_legend_handles_labels(artists[0], label) if hasattr(
411413
self, "_append_legend_handles_labels"
412414
) else self._add_legend_handle(artists[0], label, index=i)
@@ -492,7 +494,8 @@ def _make_plot(self):
492494
kwds = self.kwds.copy()
493495

494496
label = pprint_thing(label if len(label) > 1 else label[0])
495-
# `if hasattr(...)` makes plotting compatible with pandas < 1.3, see pandas-dev/pandas#40078.
497+
# `if hasattr(...)` makes plotting compatible with pandas < 1.3,
498+
# see pandas-dev/pandas#40078.
496499
label = (
497500
self._mark_right_label(label, index=i)
498501
if hasattr(self, "_mark_right_label")
@@ -506,7 +509,8 @@ def _make_plot(self):
506509

507510
kwds = self._make_plot_keywords(kwds, y)
508511
artists = self._plot(ax, y, column_num=i, stacking_id=stacking_id, **kwds)
509-
# `if hasattr(...)` makes plotting compatible with pandas < 1.3, see pandas-dev/pandas#40078.
512+
# `if hasattr(...)` makes plotting compatible with pandas < 1.3,
513+
# see pandas-dev/pandas#40078.
510514
self._append_legend_handles_labels(artists[0], label) if hasattr(
511515
self, "_append_legend_handles_labels"
512516
) else self._add_legend_handle(artists[0], label, index=i)

0 commit comments

Comments
 (0)