We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3449164 commit 720892cCopy full SHA for 720892c
python/pyspark/pandas/data_type_ops/num_ops.py
@@ -257,7 +257,7 @@ def truediv(left: PySparkColumn, right: Any) -> PySparkColumn:
257
).otherwise(F.lit(np.inf).__div__(left))
258
else:
259
return F.when(
260
- right == 0,
+ F.lit(right == 0),
261
F.when(left < 0, F.lit(float("-inf")))
262
.when(left > 0, F.lit(float("inf")))
263
.otherwise(F.lit(np.nan)),
@@ -354,7 +354,7 @@ def truediv(left: PySparkColumn, right: Any) -> PySparkColumn:
354
)
355
356
357
358
359
360
0 commit comments