HyukjinKwon commented on a change in pull request #35150:
URL: https://github.com/apache/spark/pull/35150#discussion_r781695929
##########
File path: python/pyspark/pandas/accessors.py
##########
@@ -335,14 +335,16 @@ def apply_batch(
if not isinstance(func, FunctionType):
assert callable(func), "the first argument should be a callable
function."
f = func
- func = lambda *args, **kwargs: f(*args, **kwargs)
+ func = lambda *args, **kwargs: f(*args, **kwargs) # noqa: E731
Review comment:
and it shouldn't have return type because it fails to properly infer the
schema later with `infer_return_type`.
--
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]