-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
change merge validate errors to MergeError from ValueError #16436
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
change merge validate errors to MergeError from ValueError #16436
Conversation
@nickeubank would you mind moving the |
You might have to update the tests in |
Codecov Report
@@ Coverage Diff @@
## master #16436 +/- ##
=======================================
Coverage 90.42% 90.42%
=======================================
Files 161 161
Lines 51023 51023
=======================================
Hits 46138 46138
Misses 4885 4885
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16436 +/- ##
=======================================
Coverage 90.42% 90.42%
=======================================
Files 161 161
Lines 51023 51023
=======================================
Hits 46138 46138
Misses 4885 4885
Continue to review full report at Codecov.
|
@TomAugspurger Migrated, but what would a test for this look like? Don't see any tests for the other errors in |
pandas/errors/__init__.py
Outdated
Error raised when problems arise during merging due to problems | ||
with input data. Subclass of `ValueError`. | ||
|
||
.. versionadded:: 0.21.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this versionadded, it was added quite a long time ago
de06397
to
b1f2225
Compare
https://github.com/pandas-dev/pandas/blob/master/pandas/tests/test_errors.py these are really tested that well just make a note that we moved it |
b1f2225
to
d129cfa
Compare
@jreback thanks. Added to test_errors and squashed. |
can you add a note in whatsnew (Other API Changes section is fine). otherwise lgtm. ping on green. |
…eError to pandas/errors
d129cfa
to
8dba88f
Compare
@nickeubank Thanks! |
…v#16436) * change merge validate errors to MergeError from ValueError * move MergeError to pandas/errors
Final changes from #16275 that failed to push before merge. Converts errors from
validate
argument ofmerge
command toMergeError
s fromValueError
s.