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

Function data_for_sorting

pandas/tests/extension/test_arrow.py:231–241  ·  view source on GitHub ↗

Length-3 array with a known sort order. This should be three items [B, C, A] with A < B < C

(data_for_grouping)

Source from the content-addressed store, hash-verified

229
230@pytest.fixture
231def data_for_sorting(data_for_grouping):
232 """
233 Length-3 array with a known sort order.
234
235 This should be three items [B, C, A] with
236 A < B < C
237 """
238 return type(data_for_grouping)._from_sequence(
239 [data_for_grouping[0], data_for_grouping[7], data_for_grouping[4]],
240 dtype=data_for_grouping.dtype,
241 )
242
243
244@pytest.fixture

Callers

nothing calls this directly

Calls 1

_from_sequenceMethod · 0.45

Tested by

no test coverage detected