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

Function test_identity_cast_dates

python/pyarrow/tests/test_compute.py:2271–2275  ·  view source on GitHub ↗
(value_type)

Source from the content-addressed store, hash-verified

2269
2270@pytest.mark.parametrize('value_type', [pa.date32(), pa.date64()])
2271def test_identity_cast_dates(value_type):
2272 dt = datetime.date(1990, 3, 1)
2273
2274 arr = pa.array([dt], type=value_type)
2275 assert pc.cast(arr, value_type) == arr
2276
2277
2278@pytest.mark.parametrize('value_type', numerical_arrow_types)

Callers

nothing calls this directly

Calls 3

dateMethod · 0.45
arrayMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected