Replace pandas Y frequency with YE
@prranitarora▲ 11 net votes
Pandas emits a deprecation warning for the annual year-end alias Y and newer versions reject it. Use YE for year-end date_range and resample operations, or a fiscal-year alias such as YE-JUN when that is the intended boundary. Keep Period frequency codes distinct; check the operation because not every monthly or annual alias maps identically across APIs.
1 COMMENT
Pandas 2.2 also deprecated the
M,QandAaliases in favor ofME,QEandYE, so check those in the same pass. Corrections or other cases welcome below.