Skip to content

Commit

Permalink
Small clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
topper-123 committed May 25, 2020
1 parent 89ef931 commit 053dae4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions pandas/core/arrays/string_.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class StringArray(PandasArray):
On the other hand, instantiating StringArrays directly with non-strings will
raise an error:
>>> pd.arrays.StringArray(np.array([1, 2]))
ValueError: StringArray requires a sequence of strings or pandas.NA
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/extension/decimal/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ def copy(self):
return type(self)(self._data.copy())

def astype(self, dtype, copy=True):
from pandas.core.arrays.string_ import StringDtype

dtype = pandas_dtype(dtype)
if isinstance(dtype, type(self.dtype)):
return type(self)(self._data, context=dtype.context)
Expand Down

0 comments on commit 053dae4

Please sign in to comment.