DEPR: deprecate errors='ignore' in to_datetime and make output dtype predictable · Issue #54467 · pandas-dev/pandas (original) (raw)

Feature Type

Problem Description

currently, if you do to_datetime(inputs), you don't really know what the dtype of the output will be. It could be Index or DatetimeIndex

Deprecating parsing mixed offsets goes part of the way to addressing this

Feature Description

Can we go all the way there, and deprecate errors='ignore'? Then, if the computation succeeds, then you get DatetimeIndex (potentially with some NaTs if errors='coerce')

Alternative Solutions

none that I can think of

Additional Context

there's talk about query optimisation in pandas, and greater predictability should help with that