Skip to content

Commit

Permalink
Fix python style.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Jan 23, 2018
1 parent f1db144 commit 5c3afbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ def myudf(x):
def test_nonparam_udf_with_aggregate(self):
import pyspark.sql.functions as f

df = self.spark.createDataFrame([(1,2), (1,2)])
df = self.spark.createDataFrame([(1, 2), (1, 2)])
f_udf = f.udf(lambda: "const_str")
rows = df.distinct().withColumn("a", f_udf()).collect()
self.assertEqual(rows, [Row(_1=1, _2=2, a=u'const_str')])
Expand Down

0 comments on commit 5c3afbb

Please sign in to comment.