MCPcopy Create free account
hub / github.com/apache/arrow / DummyExtensionType

Class DummyExtensionType

python/pyarrow/tests/test_pandas.py:4385–4398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4383
4384
4385class DummyExtensionType(pa.ExtensionType):
4386
4387 def __init__(self):
4388 super().__init__(pa.int64(),
4389 'pyarrow.tests.test_pandas.DummyExtensionType')
4390
4391 def __arrow_ext_serialize__(self):
4392 return b''
4393
4394 @classmethod
4395 def __arrow_ext_deserialize__(cls, storage_type, serialized):
4396 assert serialized == b''
4397 assert storage_type == pa.int64()
4398 return cls()
4399
4400
4401def PandasArray__arrow_array__(self, type=None):

Calls

no outgoing calls