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

filtering out suppressed data before some of the checks #185

Merged

Conversation

aecorn
Copy link
Collaborator

@aecorn aecorn commented Jan 21, 2025

Patches version, publishing to Pypi, new version: 1.2.9

Closes #171

This PR is to make the validations less aggressive, when handeling suppressed cells. The goal is to ignore the suppressed data during validation by setting the cells to NA before doing validations. It should however not affect the original data.

The use-case presented was that users wanted to input empty stings "", into cells that were suppressed, to guarantee that they would not end up published. This PR should make it possible, that validate() should not complain about this.

@aecorn aecorn requested a review from Bjoern-Rapp January 21, 2025 12:24
@aecorn aecorn linked an issue Jan 21, 2025 that may be closed by this pull request
Bjoern-Rapp
Bjoern-Rapp previously approved these changes Jan 21, 2025
src/statbank/uttrekk_validations.py Outdated Show resolved Hide resolved
@aecorn aecorn requested a review from Bjoern-Rapp January 22, 2025 07:24
@aecorn aecorn merged commit 2a4f4ba into main Jan 22, 2025
18 checks passed
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.

Ignore content of cells that are suppressed during validate
2 participants