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

Function PandasArray__arrow_array__

python/pyarrow/tests/test_pandas.py:4401–4405  ·  view source on GitHub ↗
(self, type=None)

Source from the content-addressed store, hash-verified

4399
4400
4401def PandasArray__arrow_array__(self, type=None):
4402 # hardcode dummy return regardless of self - we only want to check that
4403 # this method is correctly called
4404 storage = pa.array([1, 2, 3], type=pa.int64())
4405 return pa.ExtensionArray.from_storage(DummyExtensionType(), storage)
4406
4407
4408def test_array_protocol_pandas_extension_types(monkeypatch):

Callers

nothing calls this directly

Calls 2

DummyExtensionTypeClass · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected