-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: de-duplicate code in libparsing/libperiod #38915
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.
lgtm. small comments
pandas/_libs/tslibs/parsing.pyx
Outdated
else: | ||
month = (quarter - 1) * 3 + 1 | ||
try: | ||
# TODO: hack attack, GH#1228 |
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.
prob can remove the comment now :->
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.
updated
@@ -74,8 +74,7 @@ from pandas._libs.tslibs.dtypes cimport ( | |||
PeriodDtypeBase, | |||
attrname_to_abbrevs, | |||
) | |||
from pandas._libs.tslibs.parsing cimport get_rule_month | |||
|
|||
from pandas._libs.tslibs.parsing cimport quarter_to_myear |
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.
prob can cimport parse_time_string too
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.
its not cpdef
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff