File tree 2 files changed +3
-5
lines changed 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ its way towards this goal.
32
32
Here are just a few of the things that pandas does well:
33
33
34
34
- 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
36
36
- Size mutability: columns can be [ ** inserted and
37
37
deleted** ] [ insertion-deletion ] from DataFrame and higher dimensional
38
38
objects
Original file line number Diff line number Diff line change @@ -3705,7 +3705,7 @@ cdef inline void _shift_months(const int64_t[:] dtindex,
3705
3705
""" See shift_months.__doc__"""
3706
3706
cdef:
3707
3707
Py_ssize_t i
3708
- int months_to_roll, compare_day
3708
+ int months_to_roll
3709
3709
npy_datetimestruct dts
3710
3710
3711
3711
for i in range (count):
@@ -3715,10 +3715,8 @@ cdef inline void _shift_months(const int64_t[:] dtindex,
3715
3715
3716
3716
dt64_to_dtstruct(dtindex[i], & dts)
3717
3717
months_to_roll = months
3718
- compare_day = get_day_of_month(& dts, day_opt)
3719
3718
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)
3722
3720
3723
3721
dts.year = year_add_months(dts, months_to_roll)
3724
3722
dts.month = month_add_months(dts, months_to_roll)
You can’t perform that action at this time.
0 commit comments