Skip to content

Commit e0b5cc6

Browse files
committed
Fix Python style errors.
1 parent ed3b1b5 commit e0b5cc6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

python/pyspark/sql/functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ def countDistinct(col, *cols):
355355
jc = sc._jvm.functions.countDistinct(_to_java_column(col), _to_seq(sc, cols, _to_java_column))
356356
return Column(jc)
357357

358+
358359
def every(col):
359360
"""Aggregate function: returns true if all values in a group are true.
360361
"""
@@ -432,6 +433,7 @@ def grouping_id(*cols):
432433
jc = sc._jvm.functions.grouping_id(_to_seq(sc, cols, _to_java_column))
433434
return Column(jc)
434435

436+
435437
@since(1.6)
436438
def input_file_name():
437439
"""Creates a string column for the file name of the current Spark task.

python/pyspark/sql/tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2660,7 +2660,9 @@ def test_window_functions_every_any(self):
26602660
("d", True),
26612661
("d", None)
26622662
], ["key", "value"])
2663-
w = Window.partitionBy("key").orderBy("value").rowsBetween(Window.unboundedPreceding, Window.unboundedFollowing)
2663+
w = Window \
2664+
.partitionBy("key").orderBy("value") \
2665+
.rowsBetween(Window.unboundedPreceding, Window.unboundedFollowing)
26642666
from pyspark.sql import functions as F
26652667
sel = df.select(df.key,
26662668
df.value,

0 commit comments

Comments
 (0)