Skip to content

assemble support for pandas #6

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

assemble support for pandas #6

wants to merge 2 commits into from

Conversation

daiwaid
Copy link
Collaborator

@daiwaid daiwaid commented Jan 19, 2025

  • add assemble support for most transform operations for pandas
  • create a custom Map class for mapping info to be more intuitive to use
  • add parameter for map to toggle reasoning

NOTE: requires code from Libem #111 to function

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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor

@zenodflow zenodflow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants