From 5c3afbbdf762411023b06348b2bfe3dbc2ff4287 Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Tue, 23 Jan 2018 07:23:43 +0000 Subject: [PATCH] Fix python style. --- python/pyspark/sql/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyspark/sql/tests.py b/python/pyspark/sql/tests.py index 27938c81e0013..a466ab87d882d 100644 --- a/python/pyspark/sql/tests.py +++ b/python/pyspark/sql/tests.py @@ -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')])