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

built-in python scalar types are supported: int, float, str, bool #263

Merged
merged 3 commits into from
Aug 19, 2020

Conversation

cosmicBboy
Copy link
Collaborator

@cosmicBboy cosmicBboy commented Aug 18, 2020

fixes #221: This PR adds support for python built-in types that are natively interpretted by the pandas API: str, int, float, bool. This enables users to easily specify a schema using these commonly-used types without having to know anything about numpy types, pandas types, or the pandera.PandasDtype enum.

@codecov-commenter
Copy link

codecov-commenter commented Aug 18, 2020

Codecov Report

Merging #263 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #263      +/-   ##
==========================================
+ Coverage   96.58%   96.62%   +0.03%     
==========================================
  Files          15       15              
  Lines        1317     1332      +15     
==========================================
+ Hits         1272     1287      +15     
  Misses         45       45              
Impacted Files Coverage Δ
pandera/dtypes.py 94.73% <100.00%> (+0.61%) ⬆️
pandera/schema_components.py 98.41% <100.00%> (ø)
pandera/schemas.py 96.58% <100.00%> (+0.06%) ⬆️

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 02d385e...3c85cd1. Read the comment docs.

@cosmicBboy cosmicBboy merged commit c7dcef4 into master Aug 19, 2020
@cosmicBboy cosmicBboy deleted the feature/221 branch August 19, 2020 01:26
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.

pandas_dtype should accept built-in python types and numpy types
2 participants