-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
order of exceptions in array_to_datetime #19621
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19621 +/- ##
==========================================
+ Coverage 91.59% 91.6% +<.01%
==========================================
Files 150 150
Lines 48795 48798 +3
==========================================
+ Hits 44696 44699 +3
Misses 4099 4099
Continue to review full report at Codecov.
|
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.
small comment to consilidate the six-like things (PY2/PY3) in util.pxd. but ok otherwise.
@@ -56,6 +56,8 @@ from tslibs.timestamps cimport (create_timestamp_from_ts, | |||
_NS_UPPER_BOUND, _NS_LOWER_BOUND) | |||
from tslibs.timestamps import Timestamp | |||
|
|||
cdef bint PY2 = str == bytes |
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.
move to util.pxd!
thanks. ideally want to split up these giant functions (e.g. make smaller functions to handle different types, like the strings) so it easier to read. but progress. |
First, cleans things up by moving all the seen_datetime and seen_integer variables to the tops of their respective blocks.
Mainly splits the
try:
block forstring_to_dts
up into two pieces based on the two lines in that block that could raise and handles errors more specfically.