diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 4755822b8ebea..ea714ce0162bc 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1955,7 +1955,7 @@ cdef class BYearBegin(YearOffset): Examples -------- - >>> from pandas.tseries.offset import BYearBegin + >>> from pandas.tseries.offsets import BYearBegin >>> ts = pd.Timestamp('2020-05-24 05:01:15') >>> ts + BYearBegin() Timestamp('2021-01-01 05:01:15') @@ -2090,7 +2090,7 @@ cdef class BQuarterEnd(QuarterOffset): Examples -------- - >>> from pandas.tseries.offset import BQuarterEnd + >>> from pandas.tseries.offsets import BQuarterEnd >>> ts = pd.Timestamp('2020-05-24 05:01:15') >>> ts + BQuarterEnd() Timestamp('2020-06-30 05:01:15') @@ -2118,7 +2118,7 @@ cdef class BQuarterBegin(QuarterOffset): Examples -------- - >>> from pandas.tseries.offset import BQuarterBegin + >>> from pandas.tseries.offsets import BQuarterBegin >>> ts = pd.Timestamp('2020-05-24 05:01:15') >>> ts + BQuarterBegin() Timestamp('2020-06-01 05:01:15') @@ -2228,7 +2228,7 @@ cdef class BusinessMonthEnd(MonthOffset): Examples -------- - >>> from pandas.tseries.offset import BMonthEnd + >>> from pandas.tseries.offsets import BMonthEnd >>> ts = pd.Timestamp('2020-05-24 05:01:15') >>> ts + BMonthEnd() Timestamp('2020-05-29 05:01:15') @@ -2247,7 +2247,7 @@ cdef class BusinessMonthBegin(MonthOffset): Examples -------- - >>> from pandas.tseries.offset import BMonthBegin + >>> from pandas.tseries.offsets import BMonthBegin >>> ts=pd.Timestamp('2020-05-24 05:01:15') >>> ts + BMonthBegin() Timestamp('2020-06-01 05:01:15')