-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: improve 'incompatible tolerance' error message in merge_asof #17260
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
ENH: improve 'incompatible tolerance' error message in merge_asof #17260
Conversation
pandas/core/reshape/merge.py
Outdated
msg = "incompatible tolerance, must be compat " \ | ||
"with type {0}".format(type(lt)) | ||
msg = "incompatible tolerance {0}, must be compat " \ | ||
"with type {1}".format(type(tolerance), lt.dtype) |
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.
-
Let's use keyword arguments instead of
{0}
and{1}
. -
Is there a test to check this error message? If not, let's add one.
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.
And I suppose it has to be self.tolerance
instead of tolerance
(see failing tests)
@leifwalsh can you rebase and use kw args, change to use |
ping |
e33689b
to
a9ac6f9
Compare
Codecov Report
@@ Coverage Diff @@
## master #17260 +/- ##
==========================================
- Coverage 91.42% 91.41% -0.02%
==========================================
Files 163 163
Lines 50068 50068
==========================================
- Hits 45777 45768 -9
- Misses 4291 4300 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17260 +/- ##
==========================================
- Coverage 91.42% 91.41% -0.02%
==========================================
Files 163 163
Lines 50068 50068
==========================================
- Hits 45777 45768 -9
- Misses 4291 4300 +9
Continue to review full report at Codecov.
|
…ndas-dev#17260) (cherry picked from commit f68bf25)
No description provided.