8000 API: Revert breaking `.values` changes by TomAugspurger · Pull Request #24163 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

API: Revert breaking .values changes #24163

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
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
fixed memory usage tests
  • Loading branch information
TomAugspurger committed Dec 8, 2018
commit 7c22e927551faa22dbff3edd40ca5b20f08f8095
5 changes: 4 additions & 1 deletion pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,10 @@ def memory_usage(self, deep=False):
# TODO: Remove this when we have a DatetimeTZArray
# Necessary to avoid recursion error since DTI._values is a DTI
# for TZ-aware
return self._ndarray_values.nbytes
result = self._ndarray_values.nbytes
# include our engine hashtable
result += self._engine.sizeof(deep=deep)
return result

@cache_readonly
def _is_dates_only(self):
Expand Down
0