You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
importpandasaspdfrompandas.tseries.offsetsimportCustomBusinessDaypd.PeriodDtype(freq=CustomBusinessDay()) # raises TypeError: CustomBusinessDay cannot be used with Period or PeriodDtype
Issue Description
The above works on 2.0 without any FutureWarning but raises on main.
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
The above works on 2.0 without any FutureWarning but raises on main.
xref pandas-dev/pandas-stubs#640
Expected Behavior
Add a deprecation warning
Installed Versions
The text was updated successfully, but these errors were encountered: