Skip to content

Conversation

@Giftlin
Copy link
Contributor

@Giftlin Giftlin commented Sep 13, 2017

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry
Convert year and month to datetimes, using pandas vectorized versions
when the date range falls within the range supported by pandas. Other
wise it falls back to a slower but more robust method using datetime.
-wise it falls back to a slower but more robust method using datetime.
Copy link
Contributor

Choose a reason for hiding this comment

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

can you put Other on the same line here.


def convert_year_days_safe(year, days):
"""
Converts year (e.g. 1999) and days since the start of the year to a
Copy link
Contributor

Choose a reason for hiding this comment

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

a is correct here

@pep8speaks
Copy link

pep8speaks commented Sep 13, 2017

Hello @Giftlin! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on September 13, 2017 at 11:36 Hours UTC
@codecov
Copy link

codecov bot commented Sep 13, 2017

Codecov Report

Merging #17512 into master will decrease coverage by 2.25%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@ ## master #17512 +/- ## ========================================== - Coverage 91.18% 88.92% -2.26%  ========================================== Files 163 163 Lines 49543 49543 ========================================== - Hits 45177 44058 -1119  - Misses 4366 5485 +1119
Flag Coverage Δ
#multiple 88.92% <ø> (-0.03%) ⬇️
#single ?
Impacted Files Coverage Δ
pandas/io/stata.py 93.66% <ø> (ø) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/io/sql.py 46.59% <0%> (-48.22%) ⬇️
pandas/core/computation/pytables.py 62.5% <0%> (-29.88%) ⬇️
pandas/io/pytables.py 64.29% <0%> (-28.5%) ⬇️
pandas/io/feather_format.py 71.42% <0%> (-14.29%) ⬇️
pandas/core/computation/common.py 78.57% <0%> (-7.15%) ⬇️
pandas/core/computation/expr.py 84.03% <0%> (-4.46%) ⬇️
pandas/io/clipboard/clipboards.py 22.78% <0%> (-3.8%) ⬇️
pandas/io/formats/console.py 66.66% <0%> (-3.04%) ⬇️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6d4d70...45979b0. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 13, 2017

Codecov Report

Merging #17512 into master will decrease coverage by 2.25%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@ ## master #17512 +/- ## ========================================== - Coverage 91.18% 88.92% -2.26%  ========================================== Files 163 163 Lines 49543 49543 ========================================== - Hits 45177 44058 -1119  - Misses 4366 5485 +1119
Flag Coverage Δ
#multiple 88.92% <ø> (-0.03%) ⬇️
#single ?
Impacted Files Coverage Δ
pandas/io/stata.py 93.66% <ø> (ø) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/io/sql.py 46.59% <0%> (-48.22%) ⬇️
pandas/core/computation/pytables.py 62.5% <0%> (-29.88%) ⬇️
pandas/io/pytables.py 64.29% <0%> (-28.5%) ⬇️
pandas/io/feather_format.py 71.42% <0%> (-14.29%) ⬇️
pandas/core/computation/common.py 78.57% <0%> (-7.15%) ⬇️
pandas/core/computation/expr.py 84.03% <0%> (-4.46%) ⬇️
pandas/io/clipboard/clipboards.py 22.78% <0%> (-3.8%) ⬇️
pandas/io/formats/console.py 66.66% <0%> (-3.04%) ⬇️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6d4d70...32f2164. Read the comment docs.

@jreback jreback merged commit f11bbf2 into pandas-dev:master Sep 13, 2017
@jreback
Copy link
Contributor

jreback commented Sep 13, 2017

thanks!

@jreback jreback added the Docs label Sep 13, 2017
@jreback jreback added this to the 0.21.0 milestone Sep 13, 2017
@Giftlin Giftlin deleted the patch-3 branch September 18, 2017 18:00
alanbato pushed a commit to alanbato/pandas that referenced this pull request Nov 10, 2017
No-Stream pushed a commit to No-Stream/pandas that referenced this pull request Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants