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

BUG: python exits if no df is empty #120

Merged
merged 4 commits into from
Mar 16, 2023
Merged

Conversation

melvinfolkers
Copy link
Member

I've ran into an issue where df_to_azure makes the python code exit when the dataframe is empty.

This makes the python script exit, which is undesired. A better solution in my opinion would be to simply return None. i have written a test that shows the problem (and fails). In this suggested solution the validation for checking if the dataframe is empty is moved up.

@erfannariman
Copy link
Member

Looks good.

@melvinfolkers melvinfolkers merged commit 6958bfe into development Mar 16, 2023
@melvinfolkers melvinfolkers deleted the fix-for-no-data branch March 16, 2023 08:11
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