-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-53841][PYTHON][CONNECT] Implement transform()
in Column API
#52593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[SPARK-53841][PYTHON][CONNECT] Implement transform()
in Column API
#52593
Conversation
I would like to work on this issue.Please assign this to me |
Hi @akashadsare, This is a pull request rather than an issue. Do you want to work on the review instead? |
ok can you tell me how to contribute to this project |
@akashadsare |
Thanks |
transform()
in Column API
... | ||
|
||
@dispatch_col_method | ||
def transform(self, f: Callable[["Column"], "Column"]) -> "Column": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would have to be listed in python/docs/source/reference/pyspark.sql
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise
transform()
in Column APItransform()
in Column API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pending adding it to the column.rst
@zhengruifeng @HyukjinKwon I've added it to column.rst. |
What changes were proposed in this pull request?
To align with scala side, this PR adds
transform()
API in Columns API, similar toDataset.transform()
:Why are the changes needed?
We want to give users a way to chain their methods, such as
This pattern is also easier for AI agents to learn and write.
Does this PR introduce any user-facing change?
Yes. New API is introduced.
How was this patch tested?
Unit tests.
Was this patch authored or co-authored using generative AI tooling?
Tests generated by Copilot.