Details
-
Sub-task
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
3.3.0
-
None
-
None
Description
>>> pser1 = pd.Series([1, 2, 3]) >>> pser2 = pd.Series([4, 5, 6, 7]) >>> pser1 & pser2 0 False 1 False 2 True 3 False dtype: bool >>> pser1 = pd.Series([1, 2, 3]) >>> pser2 = pd.Series([4, 5, 6]) >>> pser1 & pser2 0 0 1 0 2 2 dtype: int64 >>> pser1 = ps.Series([1, 2, 3]) >>> pser2 = ps.Series([4, 5, 6, 7]) >>> pser1 & pser2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/dgd/spark/python/pyspark/pandas/base.py", line 423, in __and__ return self._dtype_op.__and__(self, other) File "/Users/dgd/spark/python/pyspark/pandas/data_type_ops/base.py", line 317, in __and__ raise TypeError("Bitwise and can not be applied to %s." % self.pretty_name) TypeError: Bitwise and can not be applied to integrals.