Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/17737#discussion_r114048457
--- Diff: python/pyspark/sql/column.py ---
@@ -185,17 +185,51 @@ def __contains__(self, item):
"in a string column or 'array_contains' function
for an array column.")
# bitwise operators
- bitwiseOR = _bin_op("bitwiseOR")
- bitwiseAND = _bin_op("bitwiseAND")
- bitwiseXOR = _bin_op("bitwiseXOR")
+ _bitwiseOR_doc = """
+ Compute bitwise OR of this expression with another expression.
+
+ :param other: a value or :class:`Column` to calculate bitwise or(|)
against
+ this :class:`Column`.
+
+ >>> from pyspark.sql import Row
+ >>> df3 = spark.createDataFrame([Row(a=170, b=75)])
--- End diff --
Why `df3` instead of `df`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]