Skip to content

BUG: Breaking change to offsets.pyx - quarter offset classes #39890

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

Closed
wants to merge 69 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
d4428da
Breaking change to offsets.pyx
Pawel-Kranzberg Feb 18, 2021
a546ddc
Update offsets.pyx
Pawel-Kranzberg Feb 20, 2021
d564763
Update offsets.pyx
Pawel-Kranzberg Feb 20, 2021
85ee259
Update offsets.pyx
Pawel-Kranzberg Feb 20, 2021
8b4ed54
Update offsets.pyx
Pawel-Kranzberg Feb 20, 2021
6e1f3c5
Update offsets.pyx
Pawel-Kranzberg Feb 20, 2021
01ce09f
Update offsets.pyx
Pawel-Kranzberg Feb 20, 2021
b95cc70
Update test_constructors.py
Pawel-Kranzberg Feb 20, 2021
ccb9b97
Update test_misc.py
Pawel-Kranzberg Feb 20, 2021
f1204de
Update test_period_index.py
Pawel-Kranzberg Feb 20, 2021
a8c8a3d
Update offsets.pyx
Pawel-Kranzberg Feb 20, 2021
1338c1f
Update test_dst.py
Pawel-Kranzberg Feb 20, 2021
d7c8cad
Update test_dst.py
Pawel-Kranzberg Feb 20, 2021
3399d67
Update test_offsets.py
Pawel-Kranzberg Feb 20, 2021
79fe747
Update test_offsets.py
Pawel-Kranzberg Feb 20, 2021
2f456cb
Update test_constructors.py
Pawel-Kranzberg Feb 20, 2021
3fd9a64
Update test_misc.py
Pawel-Kranzberg Feb 20, 2021
3ce1de9
Update test_offsets.py
Pawel-Kranzberg Feb 20, 2021
7e1e5d2
Update test_yqm_offsets.py
Pawel-Kranzberg Feb 20, 2021
f9e7c3b
Update test_period_index.py
Pawel-Kranzberg Feb 20, 2021
27a24ba
Update test_offsets.py
Pawel-Kranzberg Feb 20, 2021
197fa1b
Update test_offsets.py
Pawel-Kranzberg Feb 20, 2021
8154be9
Rename startingMonth to month
Pawel-Kranzberg Mar 17, 2021
24afb65
Merge branch 'master' into patch-2
Pawel-Kranzberg Mar 17, 2021
2757983
Update test_to_offset.py
Pawel-Kranzberg Mar 17, 2021
dc55ee6
Update test_libfrequencies.py
Pawel-Kranzberg Mar 17, 2021
12cf5bf
Update test_period.py
Pawel-Kranzberg Mar 18, 2021
8b91c5c
Update offsets.pyx
Pawel-Kranzberg Mar 18, 2021
9b4f609
Remove startingMonth reference
Pawel-Kranzberg Mar 18, 2021
d1099a8
Rename startingMonth to month
Pawel-Kranzberg Mar 18, 2021
8892734
Update offset_frequency.rst
Pawel-Kranzberg Mar 18, 2021
1cde76e
DOC: Rename startingMonth to month
Pawel-Kranzberg Mar 18, 2021
4e659a5
Rename startingMonth to month
Pawel-Kranzberg Mar 18, 2021
36df0f7
Fix "QuarterBegin" timestamp in test_rollback
Pawel-Kranzberg Mar 18, 2021
1ec3a9b
Fix timestamp for QuarterBegin
Pawel-Kranzberg Mar 18, 2021
1a6bf2c
Fix offsets tests for QuarterBegin
Pawel-Kranzberg Mar 19, 2021
a8e47a4
Rename startingMonth to month
Pawel-Kranzberg Mar 19, 2021
cbce0bd
Fix pickling of quarter-based offsets
Pawel-Kranzberg Mar 19, 2021
9506ee0
Fix pickling of quarter-based offsets
Pawel-Kranzberg Mar 19, 2021
6a7b0db
Deprecate startingMonth
Pawel-Kranzberg Mar 19, 2021
bafe9d2
Merge pull request #3 from pandas-dev/master
Pawel-Kranzberg Mar 30, 2021
e5ad2ac
Add deprecation warning test
Pawel-Kranzberg Mar 30, 2021
66d37b5
Add test_startingMonth_deprecation_warning
Pawel-Kranzberg Mar 30, 2021
57fe350
Add startingMonth deprecation to QuarterEnd
Pawel-Kranzberg Mar 30, 2021
e2665e0
Fix linting
Pawel-Kranzberg Mar 30, 2021
94947d4
Add startingMonth deprecation to QuarterEnd
Pawel-Kranzberg Mar 30, 2021
30ad2ff
startingMonth depreciation fix
Pawel-Kranzberg Mar 30, 2021
9621c16
Update offsets.pyx
Pawel-Kranzberg Mar 30, 2021
b9d6383
Update offsets.pyx
Pawel-Kranzberg Mar 31, 2021
5b89343
Create QuarterBase docstring
Pawel-Kranzberg Mar 31, 2021
6208287
Update docstrings for quarter-based offsets
Pawel-Kranzberg Mar 31, 2021
ace4503
Update v0.18.0.rst
Pawel-Kranzberg Mar 31, 2021
63a1152
Update offset_frequency.rst
Pawel-Kranzberg Mar 31, 2021
f2410e7
Update docstrings
Pawel-Kranzberg Mar 31, 2021
bc0d0c6
whatsnew entry
Pawel-Kranzberg Mar 31, 2021
f21921d
Update offsets.pyx according to GH#39890 review
Pawel-Kranzberg Apr 5, 2021
448e0da
Update test_offsets.pyx according to GH#39890 review
Pawel-Kranzberg Apr 5, 2021
fe07ea2
Update offsets.pyx
Pawel-Kranzberg Apr 5, 2021
5b2ec3f
Update offsets.pyx
Pawel-Kranzberg Apr 5, 2021
827ab65
Update v1.3.0.rst
Pawel-Kranzberg Apr 5, 2021
f27b5ef
Update offsets.pyx
Pawel-Kranzberg Apr 5, 2021
1441a29
Update v1.3.0.rst
Pawel-Kranzberg Apr 5, 2021
7875614
Update offset_frequency.rst
Pawel-Kranzberg Apr 6, 2021
688eaf6
Update v0.18.0.rst
Pawel-Kranzberg Apr 6, 2021
c0f6d84
Update v1.3.0.rst
Pawel-Kranzberg Apr 6, 2021
a5416a1
Update v0.18.0.rst
Pawel-Kranzberg Apr 6, 2021
1d3d45d
Merge branch 'master' into patch-2
Pawel-Kranzberg Apr 14, 2021
22c779f
Update v1.3.0.rst
Pawel-Kranzberg May 6, 2021
384cb82
Update offsets.pyx
Pawel-Kranzberg May 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pandas/_libs/tslibs/offsets.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,7 @@ cdef class BQuarterEnd(QuarterOffset):
"""
_output_name = "BusinessQuarterEnd"
_default_starting_month = 3
_from_name_starting_month = 12
_from_name_starting_month = 3
_prefix = "BQ"
_day_opt = "business_end"

Expand All @@ -2110,7 +2110,7 @@ cdef class BQuarterBegin(QuarterOffset):
Timestamp('2020-03-02 05:01:15')
"""
_output_name = "BusinessQuarterBegin"
_default_starting_month = 3
_default_starting_month = 1
_from_name_starting_month = 1
_prefix = "BQS"
_day_opt = "business_start"
Expand All @@ -2125,6 +2125,7 @@ cdef class QuarterEnd(QuarterOffset):
startingMonth = 3 corresponds to dates like 3/31/2007, 6/30/2007, ...
"""
_default_starting_month = 3
_from_name_starting_month = 3
_prefix = "Q"
_day_opt = "end"

Expand All @@ -2146,7 +2147,7 @@ cdef class QuarterBegin(QuarterOffset):
startingMonth = 2 corresponds to dates like 2/01/2007, 5/01/2007, ...
startingMonth = 3 corresponds to dates like 3/01/2007, 6/01/2007, ...
"""
_default_starting_month = 3
_default_starting_month = 1
_from_name_starting_month = 1
_prefix = "QS"
_day_opt = "start"
Expand Down