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

Function test_cast_time32_to_int

python/pyarrow/tests/test_array.py:2271–2277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2269
2270@pytest.mark.numpy
2271def test_cast_time32_to_int():
2272 arr = pa.array(np.array([0, 1, 2], dtype='int32'),
2273 type=pa.time32('s'))
2274 expected = pa.array([0, 1, 2], type='i4')
2275
2276 result = arr.cast('i4')
2277 assert result.equals(expected)
2278
2279
2280@pytest.mark.numpy

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
arrayMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected