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

bugfix: coerce nullable str column handles all na #366

Merged
merged 1 commit into from
Dec 24, 2020
Merged

Conversation

cosmicBboy
Copy link
Collaborator

this diff fixes an issue reported in #365 that fails to coerce
nullable string column in the case that all values are null.
The issue surfaces when reading a csv file when a column has
all null values, since these columns will be of float dtype. We
can reproduce this behavior by creating a null column in a
dataframe of float type.

Add tests to make sure this case is handled, along with the
nullable string and integer types in pandas>1.0.0.

this diff fixes an issue reported in #365 that fails to coerce
nullable string column in the case that all values are null.
The issue surfaces when reading a csv file when a column has
all null values, since these columns will be of float dtype. We
can reproduce this behavior by creating a null column in a
dataframe of float type.

Add tests to make sure this case is handled, along with the
nullable string and integer types in pandas>1.0.0.
@codecov
Copy link

codecov bot commented Dec 24, 2020

Codecov Report

Merging #366 (b20fe7f) into master (87e1e82) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #366   +/-   ##
=======================================
  Coverage   99.21%   99.21%           
=======================================
  Files          21       21           
  Lines        2427     2427           
=======================================
  Hits         2408     2408           
  Misses         19       19           
Impacted Files Coverage Δ
pandera/schemas.py 98.72% <100.00%> (ø)

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 87e1e82...b20fe7f. Read the comment docs.

@cosmicBboy cosmicBboy merged commit af4044e into master Dec 24, 2020
@cosmicBboy cosmicBboy deleted the bugfix/365 branch December 24, 2020 19:25
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