Skip to content

Add more specific error message when user passes incorrect matrix format to from_coo #26584

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 14 commits into from
Jun 2, 2019

Conversation

fhoang7
Copy link
Contributor

@fhoang7 fhoang7 commented May 31, 2019

@simonjayhawkins simonjayhawkins added Error Reporting Incorrect or improved errors from pandas Sparse Sparse Data Type labels May 31, 2019
@codecov
Copy link

codecov bot commented May 31, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26584      +/-   ##
==========================================
- Coverage   91.84%   91.83%   -0.01%     
==========================================
  Files         174      174              
  Lines       50644    50647       +3     
==========================================
- Hits        46516    46514       -2     
- Misses       4128     4133       +5
Flag Coverage Δ
#multiple 90.37% <100%> (ø) ⬆️
#single 41.69% <0%> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/core/arrays/sparse.py 93.09% <100%> (+0.02%) ⬆️
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/core/frame.py 97% <0%> (-0.12%) ⬇️
pandas/util/testing.py 90.81% <0%> (-0.11%) ⬇️

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 4c54dd2...811647d. Read the comment docs.

@codecov
Copy link

codecov bot commented May 31, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26584      +/-   ##
==========================================
- Coverage   91.86%   91.85%   -0.01%     
==========================================
  Files         174      174              
  Lines       50722    50725       +3     
==========================================
- Hits        46594    46593       -1     
- Misses       4128     4132       +4
Flag Coverage Δ
#multiple 90.39% <100%> (ø) ⬆️
#single 41.79% <0%> (-0.09%) ⬇️
Impacted Files Coverage Δ
pandas/core/sparse/scipy_sparse.py 100% <100%> (ø) ⬆️
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/core/frame.py 97% <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 addc5fc...cc44ac0. Read the comment docs.

Move try-catch block to _coo_to_sparse_series
Update entry log
@pep8speaks
Copy link

pep8speaks commented May 31, 2019

Hello @fhoang7! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-06-02 15:07:35 UTC

@fhoang7
Copy link
Contributor Author

fhoang7 commented Jun 1, 2019

@TomAugspurger @jreback: Changes made! Please review when you get the chance. Thanks!

- Simplify scope of except Block
- comment on non-regression test
@fhoang7
Copy link
Contributor Author

fhoang7 commented Jun 1, 2019

@jreback: Thanks for the feedback! Changes are pushed.

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.

thank @fhoang7 looks pretty good. you will want to wait a little to merge master as turning off a doc validation check in the CI (which is causing this to fail); though there are some small issues as indicated.

@jreback jreback added this to the 0.25.0 milestone Jun 1, 2019
- Move comment inside test
- Update docstring delineator bar
@fhoang7
Copy link
Contributor Author

fhoang7 commented Jun 1, 2019

Done! @jreback

@fhoang7
Copy link
Contributor Author

fhoang7 commented Jun 1, 2019

@simonjayhawkins: Made requested changes. Thanks for your feedback!

@fhoang7
Copy link
Contributor Author

fhoang7 commented Jun 1, 2019

@simonjayhawkins: Pushed suggested changes.

@simonjayhawkins
Copy link
Member

lgtm. not sure if you saw the comments on the error mesage check and the test name. if you can address those i think we're done

@fhoang7
Copy link
Contributor Author

fhoang7 commented Jun 2, 2019

@simonjayhawkins: Yup latest commit reflect those changes. Only thing is not sure why some checks are fixing so I only changed comments/test name. Looks like similar errors in the past builds before me.

@simonjayhawkins
Copy link
Member

Only thing is not sure why some checks are fixing so I only changed comments/test name. Looks like similar errors in the past builds before me.

failing CI is not related to your changes

Yup latest commit reflect those changes

please address #26584 (comment) and #26584 (comment)

@fhoang7
Copy link
Contributor Author

fhoang7 commented Jun 2, 2019

@simonjayhawkins: Thanks for your patience and input. Addressed those comments and double checked over your previous comments as well to make sure I resolved them.

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

thanks @fhoang7 approved assuming green on py3.5 @TomAugspurger @jreback

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

@fhoang7 failing CI is now fixed. can you merge master.

@fhoang7
Copy link
Contributor Author

fhoang7 commented Jun 2, 2019

@simonjayhawkins: Thanks for the headsup. Merged/pushed up.

@jreback jreback merged commit 6354580 into pandas-dev:master Jun 2, 2019
@jreback
Copy link
Contributor

jreback commented Jun 2, 2019

thanks @fhoang7

vaibhavhrt pushed a commit to vaibhavhrt/pandas that referenced this pull request Jun 6, 2019
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 Sparse Sparse Data Type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERR: give better error message when providing wrong sparse matrix type in from_coo
5 participants