Can only use .str accessor with string values: pandas
Summary As of October 2026, inspect the failing Series before converting it to text or datetime, and retain the conversion result. A column that looks like dates may still contain Python objects. Do first: print(s.dtype) and count non-null value types (checked 2026-10-28).