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

feature/refactor-checks #153

Merged
merged 1 commit into from
Jan 12, 2020
Merged

feature/refactor-checks #153

merged 1 commit into from
Jan 12, 2020

Conversation

cosmicBboy
Copy link
Collaborator

@cosmicBboy cosmicBboy commented Jan 12, 2020

This diff makes the Check API cleaner by moving out the
error handling into the schema doing the data validation
instead of within the __call__ subroutine.

This also standardizes the Check.__call__ signature such that
it takes the dataframe or series object to be checked.

This also cleans up the SeriesSchemaBase API and its subclasses,
where the __call__ method takes a single argument df_or_series,
which is the object to be checked.

This diff makes the Check API cleaner by moving out the
error handling into the schema doing the data validation
instead of within the __call__ subroutine.

This also standardizes the Check.__call__ signature such that
it takes the dataframe or series object to be checked.

This also cleans up the SeriesSchemaBase API and its subclasses,
where the __call__ method takes a single argument df_or_series,
which is the object to be checked.
@codecov-io
Copy link

codecov-io commented Jan 12, 2020

Codecov Report

Merging #153 into master will increase coverage by 0.29%.
The diff coverage is 98.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
+ Coverage   96.06%   96.36%   +0.29%     
==========================================
  Files           8        9       +1     
  Lines         458      468      +10     
==========================================
+ Hits          440      451      +11     
+ Misses         18       17       -1
Impacted Files Coverage Δ
pandera/error_formatters.py 100% <100%> (ø)
pandera/schema_components.py 94.33% <100%> (ø) ⬆️
pandera/hypotheses.py 88.23% <100%> (ø) ⬆️
pandera/schemas.py 100% <100%> (ø) ⬆️
pandera/checks.py 95.89% <95.65%> (-0.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b62fac4...f929419. Read the comment docs.

@mastersplinter mastersplinter merged commit 7bf2fe8 into master Jan 12, 2020
@mastersplinter mastersplinter deleted the feature/refactor-checks branch January 12, 2020 16:37
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.

3 participants