1
2
3
4
5
6
7
8
9
10
11
U
­ý°daã@s~ddlZddlZddlmZddlmmZddl    Z
ddl m Z ddl mZejZGdd„deƒZejdd„ƒZd    d
„ZdS) éN)ÚBlockPlacement)Ú BlockManager)ÚExtensionBlockc@s$eZdZejZeedœdd„ƒZdS)Ú CustomBlock)ÚreturncCsdS)NF©)Úselfrrúad:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/extension/test_external_block.pyÚ _can_hold_naszCustomBlock._can_hold_naN)    Ú__name__Ú
__module__Ú __qualname__ÚnpZndarrayZ_holderÚpropertyÚboolr
rrrr    rsrcCstt ddddgi¡}|jj}tjddd}ttddƒƒ}t||dd}||f}t    |t 
ddg¡|j gƒ}t |¡S)    NÚaéééÚint64)Zdtype)Z    placementÚndimÚb) ÚpdÚ    DataFrameÚ_mgrÚblocksrZarangerÚslicerrZIndexÚindex)Zdf1rÚvaluesZbpZ custom_blockZ block_managerrrr    Údfs
rcCs@t ddddgi¡}tj||gdd}t|jjdtƒs<t‚dS)NÚcgš™™™™™¹?gš™™™™™É?g333333Ó?r)Zaxis)rrÚconcatÚ
isinstancerrrÚAssertionError)rZdf2Úresrrr    Útest_concat_axis1#sr%)ÚnumpyrZpytestZpandas._libs.internalsrZpandas.util._test_decoratorsÚutilZ_test_decoratorsÚtdZpandasrZpandas.core.internalsrZpandas.core.internals.blocksrZskip_array_manager_invalid_testZ
pytestmarkrZfixturerr%rrrr    Ú<module>s