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

It would be nice to add a check for the input dataframe (me_df) to not be empty, and if empty print a warning. #7

Open
gbenelli opened this issue Sep 19, 2024 · 1 comment
Assignees

Comments

@gbenelli
Copy link
Contributor

I would add the check as the first line of the generate_me_df function

mes = list(me_df["me"].unique())

@roy-cruz
Copy link
Contributor

The new MEData class has this function as one of its methods, so this issue is still relevant. I added an if statement which checks if len(me_df) == 0 and if its True, it prints out a warning. You can find it in the latest commit in the PR.

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

No branches or pull requests

2 participants