-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: pd.to_datetime() throws if caching is on with Null-like arguments #26078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: pd.to_datetime() throws if caching is on with Null-like arguments #26078
Conversation
Codecov Report
@@ Coverage Diff @@
## master #26078 +/- ##
==========================================
- Coverage 91.89% 91.89% -0.01%
==========================================
Files 175 175
Lines 52509 52514 +5
==========================================
+ Hits 48255 48256 +1
- Misses 4254 4258 +4
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26078 +/- ##
==========================================
+ Coverage 91.89% 91.98% +0.08%
==========================================
Files 175 175
Lines 52509 52384 -125
==========================================
- Hits 48255 48184 -71
+ Misses 4254 4200 -54
Continue to review full report at Codecov.
|
…d with duplicate nan value now
Hello @anmyachev! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-04-17 10:56:38 UTC |
thanks @anmyachev |
This issue persists in pandas 1.2.4. Doesn't seem like this was ever merged to prod - are there perhaps any plans? |
I can confirm this issue occurs in pandas 1.2.4. However, it was not reproducible in pandas 1.3.4. |
git diff upstream/master -u -- "*.py" | flake8 --diff
The problem was in contradictory behavior between
pd.Index([pd.NaT, None]).is_unique
that returnsFalse
andalgorithms.unique([pd.NaT, None])
that returnsarray([NaT, None], dtype=object)
equivalent to the object being unique.We are only using
Index(arg).unique()
now.The test written by @realead was added to verify changes.