Skip to content

Commit 0ba7d30

Browse files
committed
remove append
1 parent 1ebc783 commit 0ba7d30

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

pandas/core/arrays/base.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class ExtensionArray(object):
3636
* isna
3737
* take
3838
* copy
39-
* append
4039
* _concat_same_type
4140
4241
An additional method is available to satisfy pandas' internal,
@@ -581,34 +580,6 @@ def copy(self, deep=False):
581580
"""
582581
raise AbstractMethodError(self)
583582

584-
def append(self, other):
585-
"""
586-
Append a collection of Arrays together
587-
588-
Parameters
589-
----------
590-
other : ExtensionArray or list/tuple of ExtensionArrays
591-
592-
Returns
593-
-------
594-
appended : ExtensionArray
595-
"""
596-
597-
to_concat = [self]
598-
cls = self.__class__
599-
600-
if isinstance(other, (list, tuple)):
601-
to_concat = to_concat + list(other)
602-
else:
603-
to_concat.append(other)
604-
605-
for obj in to_concat:
606-
if not isinstance(obj, cls):
607-
raise TypeError('all inputs must be of type {}'.format(
608-
cls.__name__))
609-
610-
return cls._concat_same_type(to_concat)
611-
612583
# ------------------------------------------------------------------------
613584
# Block-related methods
614585
# ------------------------------------------------------------------------

pandas/tests/extension/base/reshaping.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ def test_concat(self, data, in_frame):
2626
assert dtype == data.dtype
2727
assert isinstance(result._data.blocks[0], ExtensionBlock)
2828

29-
def test_append(self, data):
30-
31-
wrapped = pd.Series(data)
32-
result = wrapped.append(wrapped)
33-
expected = pd.concat([wrapped, wrapped])
34-
35-
self.assert_series_equal(result, expected)
36-
3729
@pytest.mark.parametrize('in_frame', [True, False])
3830
def test_concat_all_na_block(self, data_missing, in_frame):
3931
valid_block = pd.Series(data_missing.take([1, 1]), index=[0, 1])

0 commit comments

Comments
 (0)