File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,8 @@ 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" ]:
256
+ if (freq_name.lstrip(" B" )[0 :2 ] in [" MS" , " QS" , " YS" ]) or (
257
+ freq_name.lstrip(" CB" )[0 :2 ] in [" MS" , " QS" , " YS" ]):
257
258
end_month = 12 if month_kw == 1 else month_kw - 1
258
259
start_month = month_kw
259
260
else :
Original file line number Diff line number Diff line change @@ -343,3 +343,8 @@ def test_dti_is_year_start_freq_custom_business_day_with_digit(self):
343
343
msg = "Custom business days is not supported by is_year_start"
344
344
with pytest .raises (ValueError , match = msg ):
345
345
dr .is_year_start
346
+
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)
You can’t perform that action at this time.
0 commit comments