Open
Conversation
zenodflow
reviewed
Jan 19, 2025
examples/tasks/assemble/assemble.py
Outdated
| mappings = llmint.map(source_df, dest_df) | ||
| output = assemble(source_df, mappings) | ||
| combined_df = pd.concat([dest_df, output], axis=0) | ||
| print("Combined:", combined_df, sep="\n") |
Member
There was a problem hiding this comment.
This is a very neat / nice example for schema alignment for static datasets (known records with fixed size).
Could we have perhaps another example demonstrating this in the message broker setting?
E.g., having a continuous sending data source and the assembled data flow - once "in stalled" to the data path - able to process incoming data.
zenodflow
requested changes
Jan 21, 2025
Member
zenodflow
left a comment
There was a problem hiding this comment.
One change: ensure the assemble method reflects the intended semantics, i.e., generating the dataflow that translates incoming data records. E.g., throw a nested function. In next PRs we should support native/non-python dataflow.
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.
Mapclass for mapping info to be more intuitive to useNOTE: requires code from Libem #111 to function