How to set a pandas PeriodIndex with yearly frequency?
How to set a pandas PeriodIndex with yearly frequency? Question: I am able to create quarterly and monthly PeriodIndex like so: idx = pd.PeriodIndex(year=[2000, 2001], quarter=[1,2], freq="Q") # quarterly idx = pd.PeriodIndex(year=[2000, 2001], month=[1,2], freq="M") # monthly I would expect to be able to create a yearly PeriodIndex like so: idx = pd.PeriodIndex(year=[2000, 2001], freq="Y") …
Total answers: 2