Skip to content
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

CLN: de-duplicate _local_timestamps #36609

Merged
merged 1 commit into from
Sep 24, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

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

@ivanovmg
Copy link
Member

Looks great to me.

@ivanovmg ivanovmg self-requested a review September 24, 2020 20:36
Comment on lines +732 to 734
if self.tz is None or timezones.is_utc(self.tz):
return self.asi8
return tzconversion.tz_convert_from_utc(self.asi8, self.tz)
Copy link
Member

Choose a reason for hiding this comment

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

Nice catch of duplicate pattern throughout the module.

@jreback jreback added the Clean label Sep 24, 2020
@jreback jreback added this to the 1.2 milestone Sep 24, 2020
@jreback jreback merged commit 6648439 into pandas-dev:master Sep 24, 2020
@jbrockmendel jbrockmendel deleted the share-5 branch September 24, 2020 22:04
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants