Skip to content

Commit 8c6f4a7

Browse files
add specific test for external block
1 parent dd9babd commit 8c6f4a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/tests/internals/test_external_block.py

+9
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ def test_custom_repr():
2727
blk_mgr = BlockManager([block], [['col'], range(3)])
2828
df = pd.DataFrame(blk_mgr)
2929
assert repr(df) == ' col\n0 Val: 0\n1 Val: 1\n2 Val: 2'
30+
31+
32+
def test_concat_series():
33+
values = np.arange(3, dtype='int64')
34+
block = CustomBlock(values, placement=slice(0, 3))
35+
s = pd.Series(block, pd.RangeIndex(3), fastpath=True)
36+
37+
res = pd.concat([s, s])
38+
assert isinstance(res._data.blocks[0], CustomBlock)

0 commit comments

Comments
 (0)