xinrong-databricks commented on a change in pull request #32821:
URL: https://github.com/apache/spark/pull/32821#discussion_r649357721



##########
File path: python/pyspark/pandas/data_type_ops/num_ops.py
##########
@@ -344,3 +344,20 @@ def rfloordiv(left, right):
 
         right = transform_boolean_operand_to_numeric(right, 
left.spark.data_type)
         return numpy_column_op(rfloordiv)(left, right)
+
+    def isnull(self, ser):
+        return ser._with_new_scol(ser.spark.column.isNull() | 
F.isnan(ser.spark.column))
+
+
+class DecimalOps(FractionalOps):
+    """
+    The class for decimal operations of pandas-on-Spark objects with spark 
type:
+    DecimalType.
+    """
+
+    @property
+    def pretty_name(self) -> str:
+        return "decimal"
+
+    def isnull(self, ser):

Review comment:
       Shall we add type annotations?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to