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

Validate missing observation values #904

Open
SarahJohnsonONS opened this issue Oct 20, 2023 · 0 comments
Open

Validate missing observation values #904

SarahJohnsonONS opened this issue Oct 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SarahJohnsonONS
Copy link
Contributor

SarahJohnsonONS commented Oct 20, 2023

Amend the _validate_missing_observation_values function to check for obs val columns with no associated obs status defined against them. If any such obs values exist, raise a Validation Error.

df[df[obs_val].isna() & df[obs_status_for_obs_val].isna()].size

@SarahJohnsonONS SarahJohnsonONS added the bug Something isn't working label Oct 20, 2023
@SarahJohnsonONS SarahJohnsonONS self-assigned this Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant