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

BUG: merging an Integer EA rasises #23262

Merged
merged 15 commits into from
Dec 19, 2018
Prev Previous commit
Next Next commit
Modify _values_for_factorize in sparse.py
  • Loading branch information
makbigc committed Dec 16, 2018
commit 29e820d7cd35591ae55ec1b6d70462e20a2e1b29
2 changes: 1 addition & 1 deletion pandas/core/arrays/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ def unique(self):

def _values_for_factorize(self):
# Still override this for hash_pandas_object
return np.asarray(self), self.fill_value
return np.asarray(self, object), self.fill_value
TomAugspurger marked this conversation as resolved.
Show resolved Hide resolved

def factorize(self, na_sentinel=-1):
# Currently, ExtensionArray.factorize -> Tuple[ndarray, EA]
Expand Down