Skip to content
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

Merged
merged 1 commit into from
Oct 14, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

Also 2d compat for TDA/DTA __iter__

@jreback jreback added Performance Memory or execution speed performance Timedelta Timedelta data type labels Sep 22, 2020
@jreback jreback added this to the 1.2 milestone Sep 22, 2020
data[start_i:end_i], tz=self.tz, freq=self.freq, box="timestamp"
)
yield from converted
if self.ndim > 1:
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Contributor

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.

Copy link
Member Author

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

@jbrockmendel
Copy link
Member Author

gentle ping

@jreback jreback merged commit 34afd03 into pandas-dev:master Oct 14, 2020
@jbrockmendel jbrockmendel deleted the perf-iter branch October 14, 2020 18:30
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Oct 26, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Memory or execution speed performance Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance for TimedeltaArray.__iter__ and PeriodArray.__iter__
2 participants