-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Index may ignore specified datetime/timedelta dtypes #13981
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
Conversation
0b468c9
to
a922aef
Compare
Current coverage is 85.27% (diff: 100%)@@ master #13981 diff @@
==========================================
Files 139 139
Lines 50206 50205 -1
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 42818 42810 -8
- Misses 7388 7395 +7
Partials 0 0
|
thanks! |
@sinhrks Is it correct that you introduced the To be clear, the fact that |
tz is NOT in the Index signature but you can pass kwargs generally |
@jorisvandenbossche prior to this PR, passing |
But the consequence of this PR is that for example the following now also works:
I personally don't think this should work like that .. (a bit too much magic). |
git diff upstream/master | flake8 --diff
Index
ignores specifieddtype
if it isdatetime64
(normal and tz) ortimedelta64
. This PR makes it consistent withDatetimeIndex
andTimedeltaIndex
.Also, fixed
MultiIndex.get_level_values
not to pass unnecessarytz
andfreq
.