-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Separate parsing functions out from tslib #17363
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 1 commit
b0428ec
b19a31e
fa6def5
2cd2ab6
c765e26
b3ca3c0
e36f8be
c52c796
f5259ea
d1765ab
ceac008
e3995be
6db3e3c
cfcb002
ff57861
62cc7b0
21046b3
a5f8eca
364a6b0
f89d11e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…libs-parsing Remove unused imports from tslib; test file to import directly
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ | |
from collections import MutableMapping | ||
|
||
from pandas._libs import tslib | ||
from pandas._libs.tslibs.timezones import get_timezone | ||
from pandas._libs.tslibs import parsing | ||
from pandas._libs.tslib import ( # noqa | ||
from pandas._libs.tslibs.parsing import ( # noqa | ||
parse_time_string, | ||
_format_is_iso, | ||
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. can come back in future and de-privatize these in tslib.parsing (and change here) 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. Just added to TODO list in #17652 |
||
_DATEUTIL_LEXER_SPLIT, | ||
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 think _DATEUTIL_LEXER_SPLIT Is now private to tstlib.parsing. 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. Just pushed a commit that removes this import. |
||
|
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.
is DateParseError actually used anywhere here? it doesn't look like it.
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.
No. Retained it because it is used/imported in many places around pandas (and conceivably downstream). Will change on request.
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.
hmm, ok let's fix that in a followup then.