Add .mutate() method to builder DSL for row-wise transformations#950
Merged
SkBlaz merged 5 commits intomasterSkBlaz/py3plex:masterfrom Dec 25, 2025
copilot/add-builder-dsl-supportSkBlaz/py3plex:copilot/add-builder-dsl-supportCopy head branch name to clipboard
Merged
Add .mutate() method to builder DSL for row-wise transformations#950SkBlaz merged 5 commits intomasterSkBlaz/py3plex:masterfrom copilot/add-builder-dsl-supportSkBlaz/py3plex:copilot/add-builder-dsl-supportCopy head branch name to clipboard
SkBlaz merged 5 commits intomasterSkBlaz/py3plex:masterfrom
copilot/add-builder-dsl-supportSkBlaz/py3plex:copilot/add-builder-dsl-supportCopy head branch name to clipboard
Conversation
Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for key ops in builder DSL
Add .mutate() method to builder DSL for row-wise transformations
Dec 25, 2025
Owner
|
@copilot make sure they are in rst docs and under examples folder in relevant places |
Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Contributor
Author
Added comprehensive documentation for the mutate operation: RST Documentation:
Examples:
Commit: cccb7df |
Owner
|
@copilot add it to the flagship example in readme (mutate operator) |
Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The builder DSL was missing support for row-wise column transformations (mutations). Only aggregation operations like
.summarize()and.aggregate()were available for creating derived columns.Changes
Core implementation:
mutate_specsfield toSelectStmtAST node.mutate(**transformations)method onQueryBuilder_apply_mutate()executor function for row-wise transformation logicMutation support:
Documentation:
docfiles/user_guide/dsl.rstwith "MUTATE - Row-wise Transformations" sectiondocfiles/reference/dsl_reference.rst.mutate()in chainable operationsexamples/network_analysis/example_dsl_mutate.pywith 6 comprehensive examplesexamples/network_analysis/README.mdwith DSL section listing all examplesREADME.md- demonstrates creating derived influence scores in a production-quality workflowExample
The five core DSL operations (node/edge selection, filtering, mutations, summary) are now all supported and documented.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.