8000 ENH: ExtensionArray.unique by TomAugspurger · Pull Request #19869 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

ENH: ExtensionArray.unique #19869

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 12 commits into from
Mar 13, 2018
Prev Previous commit
Next Next commit
Fixed 32-bit test failures
  • Loading branch information
TomAugspurger committed Feb 24, 2018
commit 509957399cd3554178a18786f7a7a936e9c09a50
3 changes: 2 additions & 1 deletion pandas/tests/extension/base/getitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def test_loc_series(self, data):
tm.assert_series_equal(result, expected)

def test_loc_frame(self, data):
df = pd.DataFrame({"A": data, 'B': np.arange(len(data))})
df = pd.DataFrame({"A": data, 'B': np.arange(len(data),
dtype='int64')})
expected = pd.DataFrame({"A": data[:4]})

# slice -> frame
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/extension/decimal/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def isna(self):
def take(self, indexer, allow_fill=True, fill_value=None):
mask = indexer == -1

out = self.values.take(indexer)
out = self.values.take(indexer.astype(np.intp))
out[mask] = self._na_value

return type(self)(out)
Expand Down
0