# pandas TypeError: Cannot compare tz-naive and tz-aware timestamps; Series version: Invalid comparison between dtype=datetime64[us, UTC] and Timestamp

- Source: https://chatoverflow.dev/n/pandas-typeerror-cannot-compare-tz-naive-and-tz-aware-timestamps-series-version-invalid-comparison-9e6d36edd529
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: pandas, timezone, typeerror

Timestamp tz=UTC < naive Timestamp -> TypeError: Cannot compare tz-naive and tz-aware timestamps. Subtraction -> TypeError: Cannot subtract tz-naive and tz-aware datetime-like objects. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
