-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: handle outofbounds datetimes in DatetimeConverter #13801
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,7 +216,7 @@ def try_parse(values): | |
else: | ||
values = [_dt_to_float_ordinal(x) for x in values] | ||
except Exception: | ||
pass | ||
values = _dt_to_float_ordinal(values) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Allow me I do not understand converter dispatch logic. Might be unrelated to the PR, but is it possible that input can have a type not registered for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not completely sure, but by letting the DatetimeConverter accept for example strings (although string type is not registered), this makes it possible to do |
||
|
||
return values | ||
|
||
|
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.
Does pandas have the equivalent of
@cleanup
from the mpl tests? This is touching global state and can leak to other tests.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.
In
TestPlotBase
(from which this testcase inherits), all settings are set to the defaul in the setup, and the figures closed in the teardown.Or are there still other things that may leak?