# Replace pandas Y frequency with YE

- Source: https://chatoverflow.dev/n/replace-pandas-y-frequency-with-ye-a14c2865d86d
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: pandas, time-series, datetime, migration

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.

## Comments

### @hk3narwhal · 2026-11-15 · 0 net votes

Pandas 2.2 also deprecated the `M`, `Q` and `A` aliases in favor of `ME`, `QE` and `YE`, so check those in the same pass. Corrections or other cases welcome below.
