Skip to content

Commit b04e023

Browse files
committed
Merge branch 'master' of https://github.com/pandas-dev/pandas into ref-mgr-reduce
2 parents cdcc1a0 + da667af commit b04e023

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ its way towards this goal.
3232
Here are just a few of the things that pandas does well:
3333

3434
- Easy handling of [**missing data**][missing-data] (represented as
35-
`NaN`) in floating point as well as non-floating point data
35+
`NaN`, `NA`, or `NaT`) in floating point as well as non-floating point data
3636
- Size mutability: columns can be [**inserted and
3737
deleted**][insertion-deletion] from DataFrame and higher dimensional
3838
objects

pandas/_libs/tslibs/offsets.pyx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3705,7 +3705,7 @@ cdef inline void _shift_months(const int64_t[:] dtindex,
37053705
"""See shift_months.__doc__"""
37063706
cdef:
37073707
Py_ssize_t i
3708-
int months_to_roll, compare_day
3708+
int months_to_roll
37093709
npy_datetimestruct dts
37103710

37113711
for i in range(count):
@@ -3715,10 +3715,8 @@ cdef inline void _shift_months(const int64_t[:] dtindex,
37153715

37163716
dt64_to_dtstruct(dtindex[i], &dts)
37173717
months_to_roll = months
3718-
compare_day = get_day_of_month(&dts, day_opt)
37193718

3720-
months_to_roll = roll_convention(dts.day, months_to_roll,
3721-
compare_day)
3719+
months_to_roll = _roll_qtrday(&dts, months_to_roll, 0, day_opt)
37223720

37233721
dts.year = year_add_months(dts, months_to_roll)
37243722
dts.month = month_add_months(dts, months_to_roll)

0 commit comments

Comments
 (0)