-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: extract column name and out of bounds checks (#758)
Closes #407 Closes #637 ### Summary of Changes * New internal function `_check_bounds` to check whether a value is in some interval or raise an `OutofBoundsError`. Now, bounds only need to be specified once instead of twice (if + when raising). * New internal function `_check_columns_exist` to check whether a column with a given name exists or raise an `ColumnNotFoundError`. Now, we get consistent error messages with suggestions of similar column names. --------- Co-authored-by: megalinter-bot <[email protected]>
- Loading branch information
1 parent
e72339e
commit 92622fb
Showing
96 changed files
with
994 additions
and
1,513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.