diff --git a/pandas/_libs/tslibs/fields.pyx b/pandas/_libs/tslibs/fields.pyx index ff4fb4d635d17..eae194ebd5a1f 100644 --- a/pandas/_libs/tslibs/fields.pyx +++ b/pandas/_libs/tslibs/fields.pyx @@ -246,7 +246,11 @@ def get_start_end_field( if freqstr: if freqstr == "C": raise ValueError(f"Custom business days is not supported by {field}") - is_business = freqstr[0] == "B" + freq = "" + for char in freqstr: + if(char.isalpha()): + freq += char + is_business = freq == "B" # YearBegin(), BYearBegin() use month = starting month of year. # QuarterBegin(), BQuarterBegin() use startingMonth = starting