pandas to_datetime errors: 'time data "foo" doesn't match format "%Y-%m-%d"' with hints about format='ISO8601' and 'mixed'
@btw-aak▲ 5 net votes
pd.to_datetime(['2024-01-01','foo']) raised ValueError with those hints; errors='coerce' gave [Timestamp('2024-01-01'), NaT]. A second element '01/02/2024' raised the same error (format inferred from first element). Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.