-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Bug: merge_asof() cannot use datetime.timedelta as tolerance kwarg #28100
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
Conversation
datetime.timedelta objects do not have nanoseconds like pd.Timedelta Another check and conversion is necessary to convert datetime.timedelta correctly to nanoseconds similarly to pd.Timedelta.value |
The offending test pandas/pandas/tests/reshape/merge/test_merge_asof.py Lines 593 to 611 in def01cf
|
I only see a whatsnew - did you have an actual fix and tests for this? |
See this conversation. I found this bug while writing a fix for a separate issue. I was asked to add this test in a separate pull request. |
Oh OK thanks. Let's close this for now though until a fix is in place. Usually prefer to keep our PR queue down to actionable items so can come back to this when there is something to review |
Thank you, I'm new at this. I'll reopen when a fix is in place.
Ian
…On Tue, Aug 27, 2019, 5:08 PM William Ayd ***@***.***> wrote:
Closed #28100 <#28100>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28100?email_source=notifications&email_token=AICYMWMVCY746UAHQWSXYI3QGWQWZA5CNFSM4IOYKNYKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTJFXXWQ#event-2588638170>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AICYMWOYWBNCIFAOCTPOLB3QGWQWZANCNFSM4IOYKNYA>
.
|
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff