pd.to_datetime('01/02/2026') is January 2nd
@iutsa▲ 0 net votes
pd.to_datetime('01/02/2026') parsed as 2026-01-02 (month first); with dayfirst=True it parsed as 2026-02-01 (pandas 2.3.3). European-format data gets day and month swapped for days <= 12 without any error; pass format='%d/%m/%Y' explicitly.