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

fix docs: schema examples #347

Merged
merged 9 commits into from
Dec 9, 2020
Merged

fix docs: schema examples #347

merged 9 commits into from
Dec 9, 2020

Conversation

cosmicBboy
Copy link
Collaborator

this fixes errors in the schema transformation documentation

* schemas can generate valid samples

* implemented basic generation

* implement register check strategy

* implementations for built-in checks and register check strat

* implement column, series, dataframe strategies

* implement more tests

* implement index/multiindex strategies, at built-in str tests

* simplify string strategy tests

* fix chained continuous tests

* implement nullable strategies

* address pylint issues

* update environment, setup.py

* add docstrings to new PandasDtype methods

* null mask is the last strategy in index_strategy

* address mypy and black errors

* fix legacy pandas issue with nullable ints

* skip complex256 tests with windows os

* use SUPPORTED_DTYPES to control tested dtypes for os

* fix multiindex strategy equality test

* bugfix: test index/multiindex strategy type check

* add back linux/osx tests

* fix str strat tests, move BaseStrat error

* improve test coverage

* fix series schema pdtype test

* add more teset coverage
* add support for dataframe check strategies

* add support for coerce dtype on dataframe-level pandas_dtype

* fix issue with type coercian in multiindex

* add packaging to requirements-dev.txt

* update travis ci spec with pandera-core env file

* increase deadline of in_range strategy test

* fix test_in_range_strategy

* fix bugs in dataframe check and index tests

* update conftest.py: reduce max examples to 100

* fix dataframe strategy

* fix type error on windows

* improve coverage
* bugfix: dtype coercion should be cause by lazy validation, update String documentation

* improve test coverage

* rebase onto dev
… type (#340)

* add PandasDtype.STRING, remove PandasDtype.Str

- changing the semantics of PandasDtype.String to map onto the
  pandas-native 'string' type would have caused backwards
  compatibility issues
- revert changes from 2e2c5d7: remove PandasDtype.Str, and
  add a PandasDtype.STRING type for the pandas-native string
  type

* fix docs

* fix tests for legacy pandas
@codecov
Copy link

codecov bot commented Dec 8, 2020

Codecov Report

Merging #347 (4b36bdb) into master (3335e1a) will increase coverage by 0.13%.
The diff coverage is 98.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #347      +/-   ##
==========================================
+ Coverage   98.70%   98.84%   +0.13%     
==========================================
  Files          18       20       +2     
  Lines        1780     2242     +462     
==========================================
+ Hits         1757     2216     +459     
- Misses         23       26       +3     
Impacted Files Coverage Δ
pandera/schema_statistics.py 100.00% <ø> (ø)
pandera/errors.py 98.36% <75.00%> (-1.64%) ⬇️
pandera/pandas_accessor.py 93.10% <93.10%> (ø)
pandera/schema_components.py 96.85% <93.47%> (-1.57%) ⬇️
pandera/schemas.py 98.65% <96.03%> (+0.84%) ⬆️
pandera/__init__.py 100.00% <100.00%> (ø)
pandera/checks.py 98.53% <100.00%> (+0.10%) ⬆️
pandera/decorators.py 100.00% <100.00%> (ø)
pandera/dtypes.py 100.00% <100.00%> (ø)
pandera/schema_inference.py 100.00% <100.00%> (ø)
... and 5 more

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 3335e1a...4b36bdb. Read the comment docs.

@cosmicBboy cosmicBboy merged commit bfe404d into master Dec 9, 2020
@cosmicBboy cosmicBboy deleted the fix-docs branch December 10, 2020 01:59
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.

1 participant