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

make df strategy less complex #989

Merged
merged 1 commit into from
Oct 28, 2022
Merged

make df strategy less complex #989

merged 1 commit into from
Oct 28, 2022

Conversation

cosmicBboy
Copy link
Collaborator

fixes #988

A change in #658 introduced a step to handle str/object dtypes due to issues handling np.str_. Will need to look into whether that's still necessary in another PR, but this one compresses a bunch of strategy.map calls to a single one.

This addresses an issue where the strategy would be way too long for schemas with many str/object columns.

Signed-off-by: Niels Bantilan niels.bantilan@gmail.com

fixes #988

A change in #658 introduced a step to handle str/object dtypes due
to issues handling np.str_. Will need to look into whether that's
still necessary in another PR, but this one compresses a bunch
of `strategy.map` calls to a single one.

This addresses an issue where the strategy would be way too long
for schemas with many str/object columns.

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
@mattharrison
Copy link

Awesome. I tried this on my machine and was able to generate an example in ~3s. 👍🙏

@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

Base: 96.70% // Head: 96.70% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (4b4a5fb) compared to base (38881b6).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #989   +/-   ##
=======================================
  Coverage   96.70%   96.70%           
=======================================
  Files          42       42           
  Lines        4221     4224    +3     
=======================================
+ Hits         4082     4085    +3     
  Misses        139      139           
Impacted Files Coverage Δ
pandera/strategies.py 98.26% <100.00%> (+0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

Inferred schema fails to generate example
2 participants