pandas icon indicating copy to clipboard operation
pandas copied to clipboard

BUG: fixed OutOfBoundsDatetime exception when errors=coerce #45319

Open srotondo opened this issue 2 years ago • 1 comments

  • [ ] 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.

srotondo avatar Jul 19 '22 23:07 srotondo

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.

srotondo avatar Jul 20 '22 02:07 srotondo

Thanks @srotondo

mroeschke avatar Aug 15 '22 16:08 mroeschke