8000 Implement reductions from #24024 by jbrockmendel · Pull Request #24484 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Implement reductions from #24024 #24484

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

Merged
merged 6 commits into from
Dec 29, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix _reduce
  • Loading branch information
jbrockmendel committed Dec 29, 2018
commit 244d37bb35165937c114559342fcf029a1026d6b
5 changes: 5 additions & 0 deletions pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,11 @@ def _eadata(self):
_is_unique = Index.is_unique
astype = DatetimeIndexOpsMixin.astype

# Override DatetimeArray methods
max = DatetimeIndexOpsMixin.max
min = DatetimeIndexOpsMixin.min
_reduce = Index._reduce

_timezone = cache_readonly(DatetimeArray._timezone.fget)
is_normalized = cache_readonly(DatetimeArray.is_normalized.fget)
_resolution = cache_readonly(DatetimeArray._resolution.fget)
Expand Down
5 changes: 5 additions & 0 deletions pandas/core/indexes/timedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,11 @@ def _eadata(self):
_is_monotonic_decreasing = Index.is_monotonic_decreasing
_is_unique = Index.is_unique

# Override DatetimeArray methods
max = DatetimeIndexOpsMixin.max
min = DatetimeIndexOpsMixin.min
_reduce = Index._reduce

# -------------------------------------------------------------------

@Appender(_index_shared_docs['astype'])
Expand Down
0