-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Fix to_datetime(errors='coerce') not swallowing all parser exceptions... #28367
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
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.
@squigmig
care to do a PR with a test for (which?) one |
sure, have raised #28386 ... Failing checks on this PR seem to be intermittent. What is the preferred way to resolve or force a re-run? https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=17284
|
Pushing an empty commit, or asking a maintainer. I've restarted the build.
…On Wed, Sep 11, 2019 at 8:53 AM Miguel ***@***.***> wrote:
Looks like none of these is affected. At least one seems to be handled by
a different change
care to do a PR with a test for (which?) one
sure, have raised #28386 <#28386>
...
Failing checks on this PR seem to be intermittent. What is the preferred
way to resolve or force a re-run?
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=17284
Checks: Setup environment and build pandas is probably the originator of
the rest of the failures
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
CondaHTTPError: HTTP 404 NOT FOUND for url <https://repo.anaconda.com/pkgs/main/linux-64/widgetsnbextension-3.5.1-py37_0.conda>
Elapsed: 00:00.006773
CF-RAY: 5148a6736939e0b2-IAD
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
##[error]Bash exited with code '1'.
##[section]Finishing: Setup environment and build pandas```
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28367?email_source=notifications&email_token=AAKAOITUQ4YG3KAJNDXA5G3QJDZ7LA5CNFSM4IVFMYV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6OSAPY#issuecomment-530391103>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOIWV4WARTKQ7VVWZE3DQJDZ7LANCNFSM4IVFMYVQ>
.
|
@@ -609,16 +609,17 @@ cpdef array_to_datetime(ndarray[object] values, str errors='raise', | |||
py_dt = parse_datetime_string(val, | |||
dayfirst=dayfirst, | |||
yearfirst=yearfirst) | |||
# If the dateutil parser returned tzinfo, capture it | |||
# to check if all arguments have the same tzinfo | |||
tz = py_dt.utcoffset() |
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.
can the utcoffset() call raise? if not, why move this up?
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.
@jbrockmendel this is an issue with the datetutil parser, see #28299 (comment)
the issue itself:
dateutil/dateutil#188
thanks @squigmig |
The test this introduced is failing for me locally. Anyone else? |
rebuild your C extensions?
…On Thu, Sep 12, 2019 at 11:13 AM jbrockmendel ***@***.***> wrote:
The test this introduced is failing for me locally. Anyone else?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28367?email_source=notifications&email_token=AAKAOIWC5FWLNP44TWXIK4LQJJTBNA5CNFSM4IVFMYV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6SNWCA#issuecomment-530897672>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOIVW6V7IKRW67N3YJXLQJJTBNANCNFSM4IVFMYVQ>
.
|
Running |
yes i've got the same. on Windows. total rebuild, clean and conda env. but currently have two failures. one is the allowed failure #28125. still investigating but the failing test in pandas/tests/indexes/datetimes/test_tools.py now passes. |
upgrading cython from 0.29.10 seems to fix the build (tentatively). i might make a PR to give a better error message for that case |
… (#28299)
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff