rxin commented on a change in pull request #27142: [SPARK-30464][PYTHON][DOCS]
Explicitly note that we don't add "pandas compatible" aliases
URL: https://github.com/apache/spark/pull/27142#discussion_r364528599
##########
File path: python/pyspark/sql/dataframe.py
##########
@@ -2135,10 +2135,16 @@ def transform(self, func):
"should have been DataFrame." %
type(result)
return result
-
##########################################################################################
- # Pandas compatibility
-
##########################################################################################
+ where = copy_func(
+ filter,
+ sinceversion=1.3,
+ doc=":func:`where` is an alias for :func:`filter`.")
+ # Two aliases below were added for pandas compatibility many years ago.
+ # There are too many differences compared to pandas and we cannot just
+ # make it "compatible" by adding aliases. Therefore, we stop adding such
+ # aliases as of SPARK-30464 at this moment. Two methods below remain just
Review comment:
I'd use a version number rather than a JIRA number ...
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]