pandas
pandas copied to clipboard
BUG: fixed OutOfBoundsDatetime exception when errors=coerce #45319
- [ ] closes #45319
- [ ] Tests added and passed if fixing a bug or adding a new feature
- [ ] All code checks passed.
- [ ] Added type annotations to new arguments/methods/functions.
- [ ] Added an entry in the latest
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.
This function that this change is in doesn't care about the error variable, shown by the fact that there is no argument for the errors in the code. This function will always return NaT, and the raise and coerce cases are dealt with later in the program.
Thanks @srotondo