Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
AssertionError in FY5253.rollback() #14774
I'm trying to do North American (Year,WeekOfYear) <-> Period (W-SAT) conversions, for calculations involving fiscal year week numbers, etc. From what I understand pandas.offsets.FY5253 can be used for this, but I'm getting a weird assertion error than should probably not happen.
import pandas as pd fy = pd.offsets.FY5253(n=1, weekday=5, startingMonth=12, variation='nearest') fy.rollback(pd.Timestamp('2004-01-01'))
I think the output should be equal to the one you get with