This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 9dd4c07475c [SPARK-37730][PYTHON][FOLLOWUP] Split comments to comply
pycodestyle check
9dd4c07475c is described below
commit 9dd4c07475c82f922c29d67a4db4bb42676c5c07
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Sun Jul 10 17:24:11 2022 -0700
[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,
https://github.com/apache/spark/commit/bc54a3f0c2e08893702c3929bfe7a9d543a08cdb
.
### 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]>
---
python/pyspark/pandas/plot/matplotlib.py | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/python/pyspark/pandas/plot/matplotlib.py
b/python/pyspark/pandas/plot/matplotlib.py
index 030623605e5..c80966af941 100644
--- a/python/pyspark/pandas/plot/matplotlib.py
+++ b/python/pyspark/pandas/plot/matplotlib.py
@@ -392,7 +392,8 @@ class PandasOnSparkHistPlot(PandasHistPlot,
HistogramPlotBase):
kwds = self.kwds.copy()
label = pprint_thing(label if len(label) > 1 else label[0])
- # `if hasattr(...)` makes plotting compatible with pandas < 1.3,
see pandas-dev/pandas#40078.
+ # `if hasattr(...)` makes plotting compatible with pandas < 1.3,
+ # see pandas-dev/pandas#40078.
label = (
self._mark_right_label(label, index=i)
if hasattr(self, "_mark_right_label")
@@ -406,7 +407,8 @@ class PandasOnSparkHistPlot(PandasHistPlot,
HistogramPlotBase):
kwds = self._make_plot_keywords(kwds, y)
artists = self._plot(ax, y, column_num=i, stacking_id=stacking_id,
**kwds)
- # `if hasattr(...)` makes plotting compatible with pandas < 1.3,
see pandas-dev/pandas#40078.
+ # `if hasattr(...)` makes plotting compatible with pandas < 1.3,
+ # see pandas-dev/pandas#40078.
self._append_legend_handles_labels(artists[0], label) if hasattr(
self, "_append_legend_handles_labels"
) else self._add_legend_handle(artists[0], label, index=i)
@@ -492,7 +494,8 @@ class PandasOnSparkKdePlot(PandasKdePlot, KdePlotBase):
kwds = self.kwds.copy()
label = pprint_thing(label if len(label) > 1 else label[0])
- # `if hasattr(...)` makes plotting compatible with pandas < 1.3,
see pandas-dev/pandas#40078.
+ # `if hasattr(...)` makes plotting compatible with pandas < 1.3,
+ # see pandas-dev/pandas#40078.
label = (
self._mark_right_label(label, index=i)
if hasattr(self, "_mark_right_label")
@@ -506,7 +509,8 @@ class PandasOnSparkKdePlot(PandasKdePlot, KdePlotBase):
kwds = self._make_plot_keywords(kwds, y)
artists = self._plot(ax, y, column_num=i, stacking_id=stacking_id,
**kwds)
- # `if hasattr(...)` makes plotting compatible with pandas < 1.3,
see pandas-dev/pandas#40078.
+ # `if hasattr(...)` makes plotting compatible with pandas < 1.3,
+ # see pandas-dev/pandas#40078.
self._append_legend_handles_labels(artists[0], label) if hasattr(
self, "_append_legend_handles_labels"
) else self._add_legend_handle(artists[0], label, index=i)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]