Skip to content

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

Merged
merged 3 commits into from
Jan 4, 2021

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. small comments

else:
month = (quarter - 1) * 3 + 1
try:
# TODO: hack attack, GH#1228
Copy link
Contributor

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 :->

Copy link
Member Author

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
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its not cpdef

@jreback jreback added Clean Period Period data type labels Jan 3, 2021
@jreback jreback added this to the 1.3 milestone Jan 3, 2021
@jreback jreback merged commit 17b12c2 into pandas-dev:master Jan 4, 2021
@jbrockmendel jbrockmendel deleted the ref-libparsing-offset branch January 4, 2021 01:18
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Period Period data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants