We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd9babd commit 8c6f4a7Copy full SHA for 8c6f4a7
pandas/tests/internals/test_external_block.py
@@ -27,3 +27,12 @@ def test_custom_repr():
27
blk_mgr = BlockManager([block], [['col'], range(3)])
28
df = pd.DataFrame(blk_mgr)
29
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