zhengruifeng commented on code in PR #41660:
URL: https://github.com/apache/spark/pull/41660#discussion_r1233973231
##########
python/pyspark/pandas/window.py:
##########
@@ -2448,11 +2449,26 @@ def mean(self) -> FrameLike:
unified_alpha = self._compute_unified_alpha()
def mean(scol: Column) -> Column:
- sql_utils = SparkContext._active_spark_context._jvm.PythonSQLUtils
+ if is_remote():
+ from pyspark.sql.connect.functions import
_invoke_function_over_columns, lit
+
+ col_ewm = _invoke_function_over_columns(
+ "ewm",
Review Comment:
nit: I guess we can name it a bit more ps-specific `pandas_ewm`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]