Skip to content

BUG/TST: fillna limit checks and tests #27077

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

Merged
merged 5 commits into from
Jun 27, 2019

Conversation

Inevitable-Marzipan
Copy link
Contributor

Reversed the order of returning and performing checks on limit
in fillna method in blocks.py so that an ValueError is raised
before returning.

Alternative to PR #27074

Reversed the order of returning and performing checks on `limit`
in fillna method in blocks.py so that an ValueError is raised
before returning.
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i like this a lot better thatn the other one :->

@Inevitable-Marzipan Inevitable-Marzipan changed the title BUG/TST: :meth:DataFrame.fillna limit checks and tests BUG/TST: fillna limit checks and tests Jun 27, 2019
@codecov
Copy link

codecov bot commented Jun 27, 2019

Codecov Report

Merging #27077 into master will decrease coverage by 50.17%.
The diff coverage is 75%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #27077       +/-   ##
===========================================
- Coverage   92.03%   41.86%   -50.18%     
===========================================
  Files         180      180               
  Lines       50714    50714               
===========================================
- Hits        46675    21229    -25446     
- Misses       4039    29485    +25446
Flag Coverage Δ
#multiple ?
#single 41.86% <75%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/internals/blocks.py 52.21% <75%> (-42.93%) ⬇️
pandas/io/formats/latex.py 0% <0%> (-100%) ⬇️
pandas/io/gcs.py 0% <0%> (-100%) ⬇️
pandas/io/sas/sas_constants.py 0% <0%> (-100%) ⬇️
pandas/core/groupby/categorical.py 0% <0%> (-100%) ⬇️
pandas/tseries/plotting.py 0% <0%> (-100%) ⬇️
pandas/tseries/converter.py 0% <0%> (-100%) ⬇️
pandas/io/s3.py 0% <0%> (-100%) ⬇️
pandas/io/formats/html.py 0% <0%> (-99.37%) ⬇️
pandas/io/sas/sas7bdat.py 0% <0%> (-91.16%) ⬇️
... and 133 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 1452e71...91a4329. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 27, 2019

Codecov Report

Merging #27077 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #27077      +/-   ##
==========================================
- Coverage   92.04%   92.03%   -0.01%     
==========================================
  Files         180      180              
  Lines       50714    50718       +4     
==========================================
  Hits        46680    46680              
- Misses       4034     4038       +4
Flag Coverage Δ
#multiple 90.67% <100%> (ø) ⬆️
#single 41.89% <75%> (-0.08%) ⬇️
Impacted Files Coverage Δ
pandas/core/internals/blocks.py 95.14% <100%> (ø) ⬆️
pandas/io/gbq.py 88.88% <0%> (-11.12%) ⬇️
pandas/core/frame.py 96.89% <0%> (-0.12%) ⬇️
pandas/core/generic.py 94.18% <0%> (-0.02%) ⬇️
pandas/core/indexes/numeric.py 97.46% <0%> (+0.12%) ⬆️

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 1452e71...b5dc82e. Read the comment docs.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great change!

@WillAyd WillAyd added the Error Reporting Incorrect or improved errors from pandas label Jun 27, 2019
@WillAyd WillAyd added this to the 0.25.0 milestone Jun 27, 2019
@WillAyd WillAyd merged commit f8b0b9f into pandas-dev:master Jun 27, 2019
@WillAyd
Copy link
Member

WillAyd commented Jun 27, 2019

Thanks @Inevitable-Marzipan !

@Inevitable-Marzipan
Copy link
Contributor Author

Thanks for the help guys, 1st PR done!

@Inevitable-Marzipan Inevitable-Marzipan deleted the fillna_limit_er2 branch June 27, 2019 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fillna not throwing error when limit is not positive
3 participants