8000 API: dispatch to EA.astype by TomAugspurger · Pull Request #22343 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

API: dispatch to EA.astype #22343

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 10 commits into from
Aug 20, 2018
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
Next Next commit
py2 compat
  • Loading branch information
TomAugspurger committed Aug 14, 2018
commit 6eeec11f73cd253f67f9015456cbd7b99a74fe05
2 changes: 1 addition & 1 deletion pandas/tests/extension/decimal/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def copy(self, deep=False):
def astype(self, dtype, copy=True):
if isinstance(dtype, type(self.dtype)):
return type(self)(self._data, context=dtype.context)
return super().astype(dtype, copy)
return super(DecimalArray, self).astype(dtype, copy)

def __setitem__(self, key, value):
if pd.api.types.is_list_like(value):
Expand Down
0