Skip to content

Commit 2c532c3

Browse files
committed
Fix Python style check
1 parent 0b15c8f commit 2c532c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/pyspark/sql/dataframe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,8 @@ def replace(self, to_replace, value, subset=None):
13381338
if len(to_replace) != len(value):
13391339
raise ValueError("to_replace and value lists should be of the same length")
13401340
rep_dict = dict(zip(to_replace, value))
1341-
elif isinstance(to_replace, list) and (value is None or isinstance(value, (float, int, long, basestring))):
1341+
elif (isinstance(to_replace, list) and
1342+
(value is None or isinstance(value, (float, int, long, basestring)))):
13421343
rep_dict = dict([(tr, value) for tr in to_replace])
13431344
elif isinstance(to_replace, dict):
13441345
rep_dict = to_replace

0 commit comments

Comments
 (0)