Skip to content
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

Simple Schema type support -> pandas dataframe #221

Merged
merged 6 commits into from
Oct 26, 2020

Conversation

kumare3
Copy link
Contributor

@kumare3 kumare3 commented Oct 24, 2020

Adds a new pandas dataframe transformer. This results in a generic schema

# Length check, clean up exception
raise Exception(f"Length difference {len(output_names)} {len(function_outputs)}")
elif len(output_names) == 1 and isinstance(function_outputs, Promise):
return function_outputs
Copy link
Contributor

Choose a reason for hiding this comment

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

is the stuff below not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what do you mean? its like elif right? the indentation here looks weird, but seems fine in the code

Copy link
Contributor

Choose a reason for hiding this comment

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

But it returns here right, so the stuff below won't run. Should it not run? I added some Promise renaming stuff but maybe it's not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@kumare3 kumare3 merged commit 6e60e72 into annotations Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants