File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -253,8 +253,7 @@ def get_start_end_field(
253
253
# month of year. Other offsets use month, startingMonth as ending
254
254
# month of year.
255
255
256
- if (freq_name.lstrip(" B" )[0 :2 ] in [" MS" , " QS" , " YS" ]) or (
257
- freq_name.lstrip(" CB" )[0 :2 ] in [" MS" , " QS" , " YS" ]):
256
+ if freq_name[0 :2 ] in [" MS" , " QS" , " YS" ]:
258
257
end_month = 12 if month_kw == 1 else month_kw - 1
259
258
start_month = month_kw
260
259
else :
Original file line number Diff line number Diff line change @@ -345,6 +345,5 @@ def test_dti_is_year_start_freq_custom_business_day_with_digit(self):
345
345
dr .is_year_start
346
346
347
347
def test_dti_is_year_start_freq_business_month_start_with (self ):
348
- dr = date_range ("2020-01-01" , periods = 1 , freq = "CBMS" )
349
- print (dr .is_year_start )
350
- # assert all(dr.is_year_start)
348
+ dr = date_range ("2020-01-01" , periods = 1 , freq = "BMS" )
349
+ assert all (dr .is_year_start )
You can’t perform that action at this time.
0 commit comments