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

Additional column comparison checks #27

Open
benrutter opened this issue Jan 30, 2025 · 0 comments
Open

Additional column comparison checks #27

benrutter opened this issue Jan 30, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@benrutter
Copy link
Owner

At the moment, testing the average ratio and difference between columns is in place, which is handy. But would be useful to have some more "row specific" checks, where a ratio should never stray outside certain margins. I.e if you knew col_b should be more than 3 times col_a you might have:

- test: max_ratio_between_columns_should
  column: col_a
  other_column: col_b
  be_less_than_or_equal_to: 3

I think the nice polars/narwhal's API should make this pretty simple, ideally include:

  • max_ratio_between_columns_should
  • min_ratio_between_columns_should
  • max_difference_between_columns_should
  • min_difference_between_columns_should
@benrutter benrutter added the enhancement New feature or request label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant