Pandas version checks
-
[X] I have checked that this issue has not already been reported.
-
[X] I have confirmed this bug exists on the latest version of pandas.
-
[X] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
# non-ISO
In [1]: to_datetime(['2020-01-01', dt.datetime(9999, 1, 1)], format='%Y-%d-%m', errors='coerce')
Out[1]: DatetimeIndex(['NaT', 'NaT'], dtype='datetime64[ns]', freq=None)
# ISO
In [2]: to_datetime(['2020-01-01', dt.datetime(9999, 1, 1)], format='%Y-%m-%d', errors='coerce')
Out[2]: DatetimeIndex(['2020-01-01', 'NaT'], dtype='datetime64[ns]', freq=None)
Issue Description
it shouldn't coerce all elements
Expected Behavior
Out[2]: DatetimeIndex(['2020-01-01', 'NaT'], dtype='datetime64[ns]', freq=None)
Installed Versions
Comment From: ShisuiUzumaki
@MarcoGorelli Is it too complex? If not, I am interested. Could you guide me in resolving this bug?
Comment From: MarcoGorelli
Gonna be completely honest - based on #50225, I'd suggest you become a bit more familiar with git / github first. I'd suggest the first 3 chapters of https://git-scm.com/book/en/v2
Comment From: ShisuiUzumaki
Gonna be completely honest - based on #50225, I'd suggest you become a bit more familiar with git / github first. I'd suggest the first 3 chapters of https://git-scm.com/book/en/v2
Ok! Actually, I made a little mistake and that was I used git rebase main, not sure what I was thinking. The thing is most of these issues originated from that. Afterward, it just became a mess. Anyway, I will get work on my git skills Could you provide some resources to improve git skills beside the one you mentioned. Aside, from that, I would still like to try contributing, so if you think there are some easier issues that won't be too complicated, please let me know!