Skip to content

BUG: combination of out of bound date and nan with errors='ignore' gives nonsense data #26493

Closed
@jorisvandenbossche

Description

@jorisvandenbossche
In [46]: pd.__version__        
Out[46]: '0.25.0.dev0+593.g307265e28'

In [47]: pd.to_datetime(['15010101', '20150101', np.nan], format="%Y%m%d", errors='ignore')                                                                      
Out[47]: DatetimeIndex(['2085-07-20 23:34:33.709551616', '2015-01-01 00:00:00', 'NaT'], dtype='datetime64[ns]', freq=None)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions