MCPcopy
hub / github.com/pandas-dev/pandas / array

Function array

pandas/tests/arrays/categorical/test_indexing.py:374–375  ·  pandas/tests/arrays/categorical/test_indexing.py::array
(self, dtype=None)

Source from the content-addressed store, hash-verified

372 class="cm"># TODO(Categorical): identify other places where this may be
373 class="cm"># useful and move to a conftest.py
374 def array(self, dtype=None):
375 raise ValueError(class="st">"I cannot be converted.")
376
377 with monkeypatch.context() as m:
378 m.setattr(Categorical, class="st">"__array__", array)

Calls

no outgoing calls

Tested by

no test coverage detected