-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN (PY2): Remove DataFrame/Series.timetuple #26062
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
Codecov Report
@@ Coverage Diff @@
## master #26062 +/- ##
==========================================
- Coverage 91.9% 91.89% -0.01%
==========================================
Files 175 175
Lines 52485 52484 -1
==========================================
- Hits 48234 48230 -4
- Misses 4251 4254 +3
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26062 +/- ##
==========================================
- Coverage 91.9% 91.89% -0.01%
==========================================
Files 175 175
Lines 52485 52506 +21
==========================================
+ Hits 48234 48249 +15
- Misses 4251 4257 +6
Continue to review full report at Codecov.
|
I was under the impression that it was needed in order to get |
On this branch (so without the attribute), but in a single env of course. But I assume that you added tests for it in the original PR, so if the tests are green, we can rely on that? |
btw i think was needed for PY2 as that attribute was looked for |
Ah, that might be a good reason that CI is green now |
Yes, can confirm that in Python 2 it was needed:
Then we can remove it now. I think there are some other occurrences as well (on the arrays), let me check for that. |
thanks @jorisvandenbossche |
I was looking at the sphinx doc build warnings, and of them was complaining about the
DataFrame/Series.timetuple
attribute. This dummytimetuple
attribute was added in #24056, to fix comparison withdatetime.datetime
.Apart from the doc build problem (which can probably be fixed in another way as well), this also adds yet another (and for the rest useless / undocumented) attribute to our main classes.
But from a quick test (at least on linux with python 3.7, with Series) this is not needed to make it work. So removing again to see what travis/azure say.
@jbrockmendel do you remember the context of adding this?