-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fixed WOM offset when n=0 #20549
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
Fixed WOM offset when n=0 #20549
Conversation
2f565f3
to
62be3a2
Compare
62be3a2
to
a0593ee
Compare
Codecov Report
@@ Coverage Diff @@
## master #20549 +/- ##
=========================================
Coverage ? 91.82%
=========================================
Files ? 153
Lines ? 49305
Branches ? 0
=========================================
Hits ? 45274
Misses ? 4031
Partials ? 0
Continue to review full report at Codecov.
|
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.
@mmngreco can you add a whatsnew note (other enhancements section), and also a test for the date_range
(both ones) as you indicated in the issue. otherwise lgtm. ping on green.
Hi @jreback, I see travis fails https://travis-ci.org/pandas-dev/pandas/jobs/360472961, any idea whats going wrong? |
ping @jreback |
Sorry @jreback, I'm wondering if can I do someting to get this task done? |
there is a lint issue |
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.
small comments, otherwise lgtm. ping on green.
doc/source/whatsnew/v0.23.0.txt
Outdated
@@ -403,8 +403,10 @@ Other Enhancements | |||
``SQLAlchemy`` dialects supporting multivalue inserts include: ``mysql``, ``postgresql``, ``sqlite`` and any dialect with ``supports_multivalues_insert``. (:issue:`14315`, :issue:`8953`) | |||
- :func:`read_html` now accepts a ``displayed_only`` keyword argument to controls whether or not hidden elements are parsed (``True`` by default) (:issue:`20027`) | |||
- zip compression is supported via ``compression=zip`` in :func:`DataFrame.to_pickle`, :func:`Series.to_pickle`, :func:`DataFrame.to_csv`, :func:`Series.to_csv`, :func:`DataFrame.to_json`, :func:`Series.to_json`. (:issue:`17778`) | |||
- Now is possible create a :class:`WeekOfMonth` offset with `n=0` (:issue:`20517`). |
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.
re-word this something like: :class:`WeekOfMonth`
constuctor will support n=0
@@ -236,6 +236,10 @@ def test_catch_infinite_loop(self): | |||
pytest.raises(Exception, date_range, datetime(2011, 11, 11), | |||
datetime(2011, 11, 12), freq=offset) | |||
|
|||
def test_wom_len_one(self): | |||
# https://github.com/pandas-dev/pandas/issues/20517 |
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.
can you parametrize on periods=1, 2
5944b8b
to
75362ce
Compare
@jreback the JOB="3.5_OSX" travis fails, it doesn't seem to be related with my changes... |
thanks @mmngreco |
Checklist for other PRs (remove this part if you are doing a PR for the pandas documentation sprint):
git diff upstream/master -u -- "*.py" | flake8 --diff