class_docstr: Unit tests for arithmetic operations of numeric data types.
  
  A few test cases are disabled because pandas-on-Spark returns float64 whereas pandas
  returns float32.
  The underlying reason is the respective Spark operations return DoubleType always.
class_docstr_tok: ["Unit","tests","for","arithmetic","operations","of","numeric","data","types",".","A","few","test","cases","are","disabled","because","pandas-on-Spark","returns","float64","whereas","pandas","returns","float32",".","The","underlying","reason","is","the","respective","Spark","operations","return","DoubleType","always","."]
code: def test_xor(self):
      pdf, psdf = self.integral_pdf, self.integral_psdf
      pser, other_pser = pdf["this"], pdf["that"]
      psser, other_psser = psdf["this"], psdf["that"]
  
      self.assert_eq(pser ^ other_pser, psser ^ other_psser)
      self.assert_eq(pser ^ 2, psser ^ 2)
      self.assert_eq(pser ^ 3, psser ^ 3)
      self.assert_eq(pser ^ False, psser ^ False)
      self.assert_eq(pser ^ True, psser ^ True)
  
      with self.assertRaisesRegex(
          TypeError, "XOR can not be applied to given types."
      ):
          psser ^ "a"
          psser ^ None
  
      with option_context("compute.ops_on_diff_frames", True):
          pser, other_pser = self.integral_pdf["this"], self.pdf["bool"]
          psser, other_psser = (
              self.integral_psdf["this"],
              self.psdf["bool"],
          )
  
          self.assert_eq(pser ^ other_pser, psser ^ other_psser)
  
imports: import unittest
  import pandas
  import numpy
  from pyspark import pandas
  from pyspark.pandas.config import option_context
  from pyspark.testing.pandasutils import PandasOnSparkTestCase
  from pyspark.pandas.tests.data_type_ops.testing_utils import OpsTestBase
  from pyspark.pandas.typedef.typehints import extension_dtypes_available, extension_float_dtypes_available, extension_object_dtypes_available
  from pyspark.sql.types import DecimalType, IntegralType
label_desc: Use image node_id 5 for calling the NumOpsTestsMixin obj's underlying member method code with example usage: obj.test_xor() without return types