Skip to content

DEPR: deprecate SparseArray.values #26421

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
Prev Previous commit
Next Next commit
fix extension array .where case
  • Loading branch information
jorisvandenbossche committed May 16, 2019
commit 1018049ea19ba8aeabc9b76ce3e553e0be1d3ef4
4 changes: 2 additions & 2 deletions pandas/core/internals/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ def apply(self, f, axes=None, filter=None, do_integrity_check=False,
# with a .values attribute.
aligned_args = {k: kwargs[k]
for k in align_keys
if hasattr(kwargs[k], 'values') and
not isinstance(kwargs[k], ABCExtensionArray)}
if not isinstance(kwargs[k], ABCExtensionArray) and
hasattr(kwargs[k], 'values')}

for b in self.blocks:
if filter is not None:
Expand Down