Skip to content

CustomBusinessMonthBegin offset parameter #14869

Closed
@LingnanLemon

Description

@LingnanLemon

Code Sample, a copy-pastable example if possible

from pandas.tseries.offsets import CustomBusinessMonthBegin
 
my_offset= CustomBusinessMonthBegin(offset=timedelta(days=5))

Problem description

when creating the offset instance with specific day offset, shows 'offset' is an invalid keyword.

Expected Output

Trying to use the CustomBusinessMonthBegin together with my customized calender and a day offset to get the N_th business day of a certain calender.
Return value should be a caloffset instance.
MonthBegin to get the first business day works well. What if I want to get the second/third/...n_th business day?

Output of pd.show_versions()

0.18.0

# Paste the output here pd.show_versions() here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions