Skip to content

Commit 1c215f3

Browse files
committed
CLN: use if-indent style
1 parent e511b90 commit 1c215f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/pyspark/ml/classification.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,9 +1546,9 @@ def _fit(self, dataset):
15461546

15471547
numClasses = int(dataset.agg({labelCol: "max"}).head()["max("+labelCol+")"]) + 1
15481548

1549-
if (isinstance(classifier, HasWeightCol) and
1550-
classifier.isDefined(classifier.weightCol) and
1551-
classifier.getWeightCol()):
1549+
if (isinstance(classifier, HasWeightCol)
1550+
and classifier.isDefined(classifier.weightCol)
1551+
and classifier.getWeightCol()):
15521552
multiclassLabeled = dataset.select(labelCol, featuresCol, classifier.getWeightCol())
15531553
else:
15541554
multiclassLabeled = dataset.select(labelCol, featuresCol)

0 commit comments

Comments
 (0)