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

remove assumption from nullable strategies #641

Merged
merged 1 commit into from Oct 3, 2021
Merged

remove assumption from nullable strategies #641

merged 1 commit into from Oct 3, 2021

Conversation

cosmicBboy
Copy link
Collaborator

@cosmicBboy cosmicBboy commented Oct 2, 2021

fixes #640. This PR improves the performance of schema strategies that
involve nullable fields. Before, this strategy tries to find a case with at least
one null value. Loosen this assumption so that there can be null values
in a nullable field, but it's not necessary

Instead of a 10x performance hit it's a
2x performance hit for specifying a nullable column.

fixes #640. This PR improves the performance of schema strategies that
involve nullable fields. Instead of a 10x performance hit it's a
2x performance hit for specifying a nullable column.
@codecov
Copy link

codecov bot commented Oct 2, 2021

Codecov Report

Merging #641 (c53a349) into dev (0b3b434) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #641      +/-   ##
==========================================
- Coverage   98.84%   98.84%   -0.01%     
==========================================
  Files          30       30              
  Lines        3391     3389       -2     
==========================================
- Hits         3352     3350       -2     
  Misses         39       39              
Impacted Files Coverage Δ
pandera/strategies.py 97.88% <ø> (-0.02%) ⬇️

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 0b3b434...c53a349. Read the comment docs.

@cosmicBboy cosmicBboy merged commit 70d55ee into dev Oct 3, 2021
@cosmicBboy cosmicBboy deleted the bugfix/640 branch October 8, 2021 13:11
cosmicBboy added a commit that referenced this pull request Nov 11, 2021
fixes #640. This PR improves the performance of schema strategies that
involve nullable fields. Instead of a 10x performance hit it's a
2x performance hit for specifying a nullable column.
cosmicBboy added a commit that referenced this pull request Nov 11, 2021
fixes #640. This PR improves the performance of schema strategies that
involve nullable fields. Instead of a 10x performance hit it's a
2x performance hit for specifying a nullable column.
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.

None yet

1 participant