-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
PERF: TimedeltaArray.__iter__ #36551
Conversation
data[start_i:end_i], tz=self.tz, freq=self.freq, box="timestamp" | ||
) | ||
yield from converted | ||
if self.ndim > 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
umm, when is this hit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it isn't ATM, but there do exist 2D DTAs so we should handle this correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, either leave it out or pls add a test (former is prob better); can followon later i think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has a test test_iter_2d
gentle ping |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Also 2d compat for TDA/DTA
__iter__